XML API: show merged config

L0 Member

XML API: show merged config

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>

L4 Transporter

Re: XML API: show merged config

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.

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!