pushed-shared-policy

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

pushed-shared-policy

L2 Linker

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

Professional Services Engineer
PCNSE / PCNSC
1 accepted solution

Accepted Solutions

L1 Bithead

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.

View solution in original post

2 REPLIES 2

L1 Bithead

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.

Thanks @scottdware

Professional Services Engineer
PCNSE / PCNSC
  • 1 accepted solution
  • 3270 Views
  • 2 replies
  • 0 Likes
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 LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!