Forum Discussion
Masoud_pourshab
Nimbostratus
Jul 05, 2018List of F5 LTM VIPs and pools request
Hello, How can I get the list of pools and VIPs on LTM?
bigip = requests.session()
bigip.auth = (BIGIP_USER, BIGIP_PASS)
bigip.verify = False
bigip.headers.update({'Content-Type': 'application/json'})
BIGIP_URL_BASE = '' % BIGIP_ADDRESS
response = bigip.get ?????????????( What I need to put here?)
response_obj = json.loads(response.text)
print(response_obj)
Thank you
1 Reply
- tatmotiv
Cirrostratus
You need two queries for vips and pools. You could try that:
vip_path = BIGIP_URL_BASE + '/ltm/virtual' pool_path = BIGIP_URL_BASE + '/ltm/pool' vip_response = bigip.get(vip_path) pool_response = bigip.get(pool_path)HTH,
Martin
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
