cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Who rated this post

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

Who rated this post