XML API: show merged config

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

XML API: show merged config

L0 Member

I am using the XML API on firewalls managed by a Panorama system.  I would like to retrieve the merged configuration containing the firewalls configuration, plus any configuration gained from Panorama templates.  I believe this is what the show config merged operation should do. However, after running the command, I don't seem to have any information from the templates, just the base configuration of the firewall.

 

Is my reasoning correct?  If this isn't going to work is there another way to achieve this result?

 

I am using the following api call:

/api/?type=op&cmd=<show><config><merged></merged></config></show>

1 REPLY 1

L4 Transporter

There is an example in the documentation:

 

https://www.paloaltonetworks.com/documentation/71/pan-os/xml-api.pdf

 

Pre‐rules pushed from Panorama:

 

https://firewall//api/?type=config&action=get&xpath=/confi
g/panorama/vsys/entry[@name='vsys']/pre-rulebase/security

 

Maybe this can be adapted to retrieve what you need.

  • 2818 Views
  • 1 replies
  • 1 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!