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/
Palo Alto Networks
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!