How to commit to Panorama using XML API Request?
2616
Created On 01/24/23 09:01 AM - Last Modified 10/19/23 20:53 PM
Objective
The objective of this article is to show how to commit locally to Panorama using XML API Request.
Environment
- Panorama appliances.
- All PAN-OS versions.
Procedure
- The XML API Guide provides information on "Commit " and "Commit all " API requests
- An example of "commit-all" from Panorama is shown below.
- From the browser, use below API request to commit locally to Panorama:
https://<PANORAMA_IP>/api/?type=commit&key=<KEY>&cmd=<commit-all><shared-policy><device-group></device-group></shared-policy></commit-all> - Or via cURL call:
curl -k 'https://<PANORAMA_IP>/api/?type=commit&key=<KEY>&cmd=<commit-all><shared-policy><device-group></device-group></shared-policy></commit-all>'