Display all pools and their members

I’m working on a project where I’m trying to get all pools and their pool members, but I’m trying to do this in the least amount of http calls as possible. I think of it almost like the network map in the F5 GUI, it shows all pools and their pool members. Does this functionality exist in the F5? Does anyone have suggestions?

Thank you.

What version are you running? If you’re using 11.5 (I think it’s available in 11.4 but not fully supported yet), You should be able to use iControlREST to get the data. Something like

https://f5mgmtdevice/mgmt/tm/ltm/pool?expandSubcollections=true&$select=name,fullPath,membersReference/items/name,membersReference/items/address,membersReference/items/fullPath

should work. It’ll return a JSON string of the data and only require a single GET HTTP request.

Awesome Mike! That worked like a charm.