- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
11-02-2011 02:09 PM
I upgraded to PanOS 4.1 and noticed I could no longer make commits via the XML API. Seems like maybe the syntax has changed but I can't find any documentation. When I execute the query below either by script or browser I'm returned with '500 Internal Server Error'. Correct me if I'm wrong but the XML API is kind of useless if we can't commit changes made with it. :smileysilly:
Commit Query:
https://<panfw>/esp/restapi.esp?type=config&action=commit&key=<apikey>
Any one have any suggestions?
-Brandon
11-02-2011 05:01 PM
Hi Brandon,
In 4.1 the XML API has been re-organized and has several enhancements. One of which is that commit is now a 'type' and no longer nested as an 'action' under config. There are also several additional options for partial and vsys specific commit operations.
https://hostname/api/?type=commit&action=set&key=keyvalue&cmd=<commit></commit>
This will also work (the original API path has been preserved for backward compatability:
https://honstame/esp/restapi.esp?type=commit&action=set&key=keyvalue&cmd=<commit></commit>
If you log into your firewall as a super user for an admininstrative web session, then open a new tab in your browser and navigate to:
You will be greeted with the new API command browser to assist you in constructing XML API calls.
Best Regards,
Marc
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!