I'm using PAN::XAPI XML API module to perform various actions on a Palo Alto firewall. The connections seem to work fine. However, after a while I still see the admin logged in according to the Dashboard tab. They stay there until the idle timeout is reached.
I'd prefer to be able to call a disconnect() or logout() type of method when I'm done with the XML calls so the user isn't still logged in. A lot of the actions we do may connect, do a few commands and then disconnect.
As a workaround, I've been using the panxapi and panaddr commands that come with the API module. They do not have admin sessions hanging around after exiting.
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 Live Community as a whole!
The Live Community thanks you for your participation!