List 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

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