For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

JustJozef's avatar
JustJozef
Icon for Cirrus rankCirrus
Jul 04, 2022
Solved

icontrol - different exported policy via icontrol and GUI

Hi,

I trying to export security policy with icontrol but when I compare output with same policy exported via GUI it's different.

 

/mgmt/tm/asm/tasks/export-policy/", '{"filename": "test_api_new.xml", "minimal":"true", "format":"xml", "policyReference":{"link": "https://localhost/mgmt/tm/asm/policies/' + str(policyId) + '"}}

 

icontrol exported policy 19684 lines
GUI export has 52857 lines.

 

For example GUI export contains info about open_api_files but icontrol export not.

 

<open_api_files>
    <open_api_file>
      <filename>rest-api-security~swagger.json</filename>
      <upload_datetime>2022-07-01T14:01:31Z</upload_datetime>
    </open_api_file>
  </open_api_files>

 

Should be policy be same? Does not matter from where I export it?

In addition is there detail documentation for icontrol? Currently I use https://cdn.f5.com/websites/devcentral.f5.com/downloads/icontrol-rest-api-user-guide-15-1-0.pdf

I found some options from responses from the requests but maybe I missed some important options?

Thank you.

7 Replies