Getting Started with the f5-common-python SDK
If you have dabbled with python and iControl over the years, you might be familiar with some of my other “Getting Stared with …” articles on python libraries. I started my last, on Bigsuds, this way:...
Updated Jun 06, 2023
Version 2.0JRahm
Admin
Joined January 20, 2005
Wally_Steadman_
Jun 11, 2018Nimbostratus
Hey There Jason. Great Tutorials. So I am following your train and maybe I am missing something. So I want to print out a list of Current VIPS and their status. There are over 2 hundred VIPs.
My specific question is how to find out the variables allowed:
For example:
import requests
requests.packages.urllib3.disable_warnings()
from f5.bigip import ManagementRoot
Basic Authentication
b = ManagementRoot('10.234.1.82', 'admin', 'Cl0udyD@y$')
Token Authentication
b = ManagementRoot('ltm3.test.local', 'admin', 'admin', token=True)
print(b.tmos_version)
virtual_servers = b.tm.ltm.virtuals.get_collection()
print(type(virtual_servers))
print(virtual_servers)
for vips in virtual_servers:
print(vips.name)
So I see names is a variable I can pull, but is there a way (documentation or link or even a list pulled via Python) for me to see what other information I can pull that is available for the Virtual Servers, such as the IP, the Associated Pool and maybe even the VIP Up/Down availability status. I might be asking it wrong, and if I am, let me know and I can further attempt to clarify. THANKS Wally