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
JRahm
Jun 05, 2018Admin
You can do this by first loading the virtual server, then the profiles, like this:
>>> vip = b.tm.ltm.virtuals.virtual.load(name='testvip')
>>> profiles = vip.profiles_s.get_collection()
Then you can check the number of profiles with len, and then print out their names:
>>> len(profiles)
4
>>> for profile in profiles:
... print profile.name
...
cssl
http
serverssl
tcp
>>>