Forum Discussion

Marvin_129795's avatar
Marvin_129795
Icon for Nimbostratus rankNimbostratus
Aug 27, 2018
Solved

Export AFM firewall rules using Icontrol

Hi All,

I am trying to export the complete firewall rule list using RestAPI in version 12.1.3 but I get the following response:

command used: $select=rulesReference&expandSubcollections=true

ver=12.1.3.1","isSubcollection":true}}]}'expandSubcollections' is not recognized as an internal or external command

It seems the expandsubcollections command is not being recognized at all.

Complete response is:

   {"kind":"tm:security:firewall:policy:policycollectionstate","selfLink":"https://localhost/mgmt/tm/security/firewall/policy?$select=rulesReference&ver=12.1.3.1","items":[{"rulesReference":{"link":"https://localhost/mgmt/tm/security/firewall/policy/~Common~DDCBU-Global/rules?ver=12.1.3.1","isSubcollection":true}},{"rulesReference":{"link":"https://localhost/mgmt/tm/security/firewall/policy/~Common~DDCBU-management/rules?ver=12.1.3.1","isSubcollection":true}},{"rulesReference":{"link":"https://localhost/mgmt/tm/security/firewall/policy/~Common~self-protect/rules?ver=12.1.3.1","isSubcollection":true}}]}'expandSubcollections' is not recognized as an internal or external command,
operable program or batch file.

7 Replies