Forum Discussion
PatrickCox
Altocumulus
Oct 19, 2020iControl 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 ...
Dario_Garrido
Noctilucent
Oct 21, 2020Hello Patrick.
There no way to get this info directly from iControlREST.
The most similar is to capture al the pool members of each pool a filter it after. With this specific query you could catch only the pool and poolmember names.
curl -sku admin:<PASSWORD> https://<BIGIP>/mgmt/tm/ltm/pool?\&expandSubcollections=true\&\$select=name,membersReference/items/name | json-format
Despite this, with iControlREST you can also request one specific TMSH command, so another idea could be to show all your pools but filtering them by POOLMEMBER+PORT. An example below:
curl -sku admin:<PASSWORD> -X POST -H "Content-Type: application/json" https://<BIGIP>/mgmt/tm/util/bash -d "{\"command\":\"run\", \"utilCmdArgs\": \"-c 'tmsh list ltm pool members \{ MY-POOL-MEMBER:443 \}'\"}" | sed 's/\\n/\n/g'
Regards,
Dario.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects