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.

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. :ghost:

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.:ghost:

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.:ghost: