- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
06-15-2017 06:42 AM
Hi,
We have a development what extract the configuration via rest api and analize this.
In a firewall with vsys and panoroma, i have this problem.
in PAN-OS 7.0.x extract the policy configuration for all vsys with this call
/api/?type=op&cmd=<show><config><pushed-shared-policy></pushed-shared-policy></config></show>
in PAN-OS 7.1.x if i utilice the same rest api url, the result is empty.
Result:
<response status="success"><result>No shared policy pushed to device</result></response>
Via cli, i can extract the config of each vsys whith this command. But this command is no available via rest api.
show config pushed-shared-policy vsys vsys1
the call:
/api/?type=op&cmd=<show><config><pushed-shared-policy><vsys><vsys1></vsys1></vsys></pushed-shared-policy></config></show>
Result:
<response status="error" code="17"><msg><line> show -> config -> pushed-shared-policy -> vsys is invalid</line></msg></response>
How i can extract the pushed-shared-policy for all of each vsys via rest api in 7.1.x ?
Marco Poffal Daza
06-20-2017 04:45 AM
Marco,
Try using the following:
You have to have the "vsys1" surrounded by the <vsys></vsys> tags.
06-20-2017 04:45 AM
Marco,
Try using the following:
You have to have the "vsys1" surrounded by the <vsys></vsys> tags.
06-21-2017 11:42 AM
Thanks @scottdware
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!