Krishna_251070
Oct 16, 2017Nimbostratus
iControl Question
Hi Experts,
Newbie to the world of iControl!
I used this command to disable a single node in the pool.
user@server[~]$ curl -sk -u admin
https://x.x.x.x/mgmt/tm/ltm/pool/Test/members/~Common~NODE:PORT/ -H "Content-Type: application/json" -X PUT -d '{"state": "user-down", "session": "user-disabled"}'
Is there anyway I can disable all the nodes in the pool using a single line command?
Tried this; but didn't work!
user@server[~]$ curl -sk -u admin https://x.x.x.x/mgmt/tm/ltm/pool/Test/members/*/ -H "Content-Type: application/json" -X PUT -d '{"state": "user-down", "session": "user-disabled"}'
{"code":400,"message":"Invalid URI","errorStack":[]}