Forum Discussion
Satoshi_Toyosa1
Jan 11, 2021Employee
You can disable all the pool members that belong to a certain node by disabling the node: e.g.,
curl -sku $PASS https://$HOST/mgmt/tm/ltm/node/<NODE> -X PATCH -H 'Content-type: application/json' -d '{"state":"user-down"}'
If you need to disable individual pool members (e.g., test_node:80 and test_node:443 but not test_node:8080), then you need to write a loop: e.g.,
for member in test_node:80 test_node:443: do
curl -sku $PASS https://$HOST/mgmt/tm/ltm/pool/members/$member -X PATCH -H 'Content-type: application/json' -d '{"state":"user-down"}'
done