For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

aaron906's avatar
aaron906
Icon for Nimbostratus rankNimbostratus
Nov 19, 2024

Retrieve GTM pool member addresses (Bigrest)

A wide-IP has a pool of servers that are virtual-servers on an LTM. I would like to retrieve the pool member addresses of the virtual servers used in the wide-IP pool using the Bigrest Python library.

 

wide-ip = site.com

Pool Name = site_pool

Pool Member A = site_a_vs (server = ltm_a)

Pool Member B = site_b_vs (server = ltm_b)

 

I can load the wide-IP which provides a poolReference.

I can then load the pool, which provides a membersReference.

The membersReference provides a serverReference (the LTM) and the vs name. From here, I can load all virtual servers on the server provided by the serverRefence, but unsure how to retrieve only the virtual servers that are relevant to the wide-IP. There is no virtualserver ID provided by the membersReference or ServerReference.

1 Reply

  • Yes, the membersReference provides a serverReference (which is the LTM) and the virtual server name, but it does not directly provide detailed information about the virtual server. You can visit /mgmt/toc to look up the specific API endpoint parameters. 👻

    So, what I do is split the server and vs information provided by the membersReference using split(':'), then extract all the VS information from the following serverReference, and perform a match.👻 

    Once a match is successful, I continue to gather detailed information about the VS. Although this involves more steps, it should be achievable by modifying the code logic, and it will just require a few additional steps.👻