XML API 7.0 Panorama commit-all solution

L1 Bithead

XML API 7.0 Panorama commit-all solution

Here is a curl example of how to push a shared-policy to a device group in Panorama.  The example in the XML API Reference Guide 7.0 documentation has an url encoding issue due to the space in "entry name"  Another, not so clean approach, is put %20 in the space "entry%20name" if using the example from the documentation

 

Push configuration to firewalls in a Panorama DeviceGroup

 

curl -k -d key=$KEY --data-urlencode "cmd=<commit-all><shared-policy><device-group><entry name='DC100-DG'/></device-group></shared-policy></commit-all>" -d 'type=commit' -d 'action=all' https://192.168.55.5/api/

 

Michael Clark

Palo Alto Networks

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!