F5 Friday: Python SDK for BIG-IP
Published Mar 11, 2016
Version 1.0Was this article helpful?
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?