F5Networks / f5-common-python

Python SDK for configuration and monitoring of F5® BIG-IP® devices via the iControl® REST API.
https://f5-sdk.readthedocs.org
Apache License 2.0
262 stars 133 forks source link

f5.bigip ManagementRoot logout feature #1531

Open delhipnr opened 5 years ago

delhipnr commented 5 years ago

i did take multiple captures and analysis on the device from user access point of view. do i really need to logout after each run with scripts through f5 sdk?

let say i put it idle, what would be the harm?

jasonrahm commented 5 years ago

I'm not sure what you are trying to say, can you clarify what the issue is, and what you are hoping for as a fix action?

delhipnr commented 5 years ago

Thanks, i am looking loggoff feature in f5sdk.

Sesn = ManagementRoot (ip, uid, pwd)

Above is to login, do we also hv something like Sesn.logout() def ?

jasonrahm commented 5 years ago

There isn't a logout function with the rest interface. When you authenticate, you should get a token and that token has an expiration timer (configurable). You could create your own logout function by updating the expiration of your token when your calls are complete, effectively logging out.