PaloAltoNetworks / pan-os-python

The PAN-OS SDK for Python is a package to help interact with Palo Alto Networks devices (including physical and virtualized Next-generation Firewalls and Panorama). The pan-os-python SDK is object oriented and mimics the traditional interaction with the device via the GUI or CLI/API.
https://pan-os-python.readthedocs.io
ISC License
340 stars 168 forks source link

How to logout from Connected firewall/panorama #466

Open FrancisPrakash opened 2 years ago

FrancisPrakash commented 2 years ago

Hi,

Once connected to firewall/panorama, how to logout from the same device? I was searching throughout the doc, but couldn't help.

BatD2 commented 2 years ago

I had the same thought, after you completed you script, the firewall keeps the session open and the user still shows as logged in. I dont think there is an API option to explicitly log out as you do from the cli or gui. You can configure user time out on the firewall and the admin session for api user will be eventually cleared.