Forum Discussion
Oct 21, 2020
Hello 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.