F5 Friday: Python SDK for BIG-IP
We know programmability is important. Whether we’re talking about networking and SDN, or DevOps and APIs and templates, the most impactful technologies and trends today are those involving pro...
Published Mar 11, 2016
Version 1.0Lori_MacVittie
Employee
Joined October 17, 2006
Lori_MacVittie
Employee
Joined October 17, 2006
m9maganti_36891
Aug 04, 2018Nimbostratus
Hi All, I am trying to get the pools members and their current state from GTM. I tried the code which is given on the site…… but it didn’t work. Code: from import BigIP
Connect to the BigIP
bigip = BigIP("bigip.example.com", "admin", "somepassword")
Get a list of all pools on the BigIP and print their name and their members' name
pools = bigip.gtm.pools.get_collection() for pool in pools: print pool.name for member in pool.members: print member.name Error: print pool.name AttributeError: there is no name element in the dict
Apparently F5 sdk is not working as expected. gym pools.pool doesn’t work neither I am not able to fetch the names of the pool. Can someone help?