XML API 7.0 Panorama commit-all solution

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 7.0 Panorama commit-all solution

L1 Bithead

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

0 REPLIES 0
  • 2275 Views
  • 0 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!