- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
01-23-2017 07:51 AM
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>
03-16-2017 06:30 AM
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.
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!