iControl REST - Finding a pool with a specific member
Hi,
Would anyone know of a shortcut to finding a pool (or pools) with a specific member?
In the WebGUI (v13.1.3) when viewing the properties of a node there is a Pool Membership tab. It will show what pools the node is a member of.
I would like to use an iControl REST call to determine the same thing.
I have the code to get the list of pools with their basic properties. One of the pool's properties is the memberReference link. I can use this link to get a list of pool members with properties including memberName (nodeName:port), IPaddress, etc. Potentially I could query every pool (500+) and build a list of pool members with the properties like: PoolName, memberName, IPaddress.... Then I could scan this list for either the node or the node's IP address.
It's a bit of a pig. Just thought there might be a quicker way.
...Patrick