Forum Discussion
Cay_Jeglinski_1
Mar 22, 2016Nimbostratus
iControlREST and POST method to enable or disable members
Hi All,
I followed Jason Rahms articles on iControlREST. With GET method I always get a useful result - so far so good.
I work with POST method as well. Is there a limitation of some kind w...
- Mar 22, 2016
This should point you in the right direction
https://devcentral.f5.com/articles/icontrol-rest-working-with-pool-members
In summary, you need to add the "state": "unchecked" as well as "session" : "user-disabled"
Cheers Steve
steve_laffan_11
Cirrus
This should point you in the right direction
https://devcentral.f5.com/articles/icontrol-rest-working-with-pool-members
In summary, you need to add the "state": "unchecked" as well as "session" : "user-disabled"
Cheers Steve
Cay_Jeglinski_1
Mar 23, 2016Nimbostratus
Hi Steve!
Thank you for your post! It was just the way to go! Cheers!
Here the solution in case somebody uses partitions as well. Enable the member with:
curl -sk -u admin:admin https://waymuc01.waysoft.de/mgmt/tm/ltm/pool/~webfarm-WAY~way-pool3/members/~webfarm-WAY~srvweb16.waysoft.de:80/ -H "Content-Type: application/json" -X PUT -d '{"state": "user-up", "session": "user-enabled"}'
To disable the member I used:
curl -sk -u admin:admin https://waymuc01.waysoft.de/mgmt/tm/ltm/pool/~webfarm-WAY~way-pool3/members/~webfarm-WAY~srvweb16.waysoft.de:80/ -H "Content-Type: application/json" -X PUT -d '{"state": "user-up", "session": "user-disabled"}'
Cheers again Steve!
Cay
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