Any way to logout or disconnect from API to prevent "logged in admins" growing?

Reply
Not applicable

Any way to logout or disconnect from API to prevent "logged in admins" growing?

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. 

Tags (1)
Not applicable

Re: Any way to logout or disconnect from API to prevent "logged in admins" growing?

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. 

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!