Forum Discussion
Getting GTM Pool and Wideips with Python f5-sdk
- Oct 21, 2021
from f5.bigip import ManagementRoot
mgmt = ManagementRoot('192.168.5.109', 'admin', 'xt32112300')
the code of gtm pool for type a, aaaa, cname
for i in mgmt.tm.gtm.pools.a_s.get_collection():
print(i.raw)
for i in mgmt.tm.gtm.pools.aaaas.get_collection():
print(i.raw)
for i in mgmt.tm.gtm.pools.cnames.get_collection():
print(i.raw)
the code of gtm wideip for type a, aaaa, cname
for i in mgmt.tm.gtm.wideips.a_s.get_collection():
print(i.raw)
for i in mgmt.tm.gtm.wideips.aaaas.get_collection():
print(i.raw)
for i in mgmt.tm.gtm.wideips.cnames.get_collection():
print(i.raw)
from f5.bigip import ManagementRoot
mgmt = ManagementRoot('192.168.5.109', 'admin', 'xt32112300')
the code of gtm pool for type a, aaaa, cname
for i in mgmt.tm.gtm.pools.a_s.get_collection():
print(i.raw)
for i in mgmt.tm.gtm.pools.aaaas.get_collection():
print(i.raw)
for i in mgmt.tm.gtm.pools.cnames.get_collection():
print(i.raw)
the code of gtm wideip for type a, aaaa, cname
for i in mgmt.tm.gtm.wideips.a_s.get_collection():
print(i.raw)
for i in mgmt.tm.gtm.wideips.aaaas.get_collection():
print(i.raw)
for i in mgmt.tm.gtm.wideips.cnames.get_collection():
print(i.raw)
This is exactly what I'm looking for. Thanks for taking the time to reply! I appreciate it! Will try this today.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com