pushed-shared-policy

Reply
L2 Linker

pushed-shared-policy

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

Tags (1)
L1 Bithead

Re: pushed-shared-policy

Marco,

 

Try using the following:

 

/api/?type=op&cmd=<show><config><pushed-shared-policy><vsys>vsys1</vsys></pushed-shared-policy></con...

 

You have to have the "vsys1" surrounded by the <vsys></vsys> tags.

L2 Linker

Re: pushed-shared-policy

Thanks @scottdware

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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 Live Community as a whole!

The Live Community thanks you for your participation!