Forum Discussion
Alli_Saidulu_29
Nimbostratus
Oct 05, 2016REST API to take a pool member to offline/online in F5 ltm
I am trying to bring a pool member offline during maintenance and bring it back to online once maintenance is over. My device F5 LTM. Is there any REST API to do this (which can help me in taking a p...
tatmotiv
Cirrostratus
Oct 07, 2016Using curl, you could do it like that:
DISABLE pool member:
curl -sk -u admin:password https://1.2.3.4:443/mgmt/tm/ltm/pool/~Common~testweb_pool/members/~Common~host1:80 -H 'Content-Type: application/json' -X PUT -d "{\"session\":\"user-disabled\"}"
ENABLE pool member:
curl -sk -u admin:password https://1.2.3.4:443/mgmt/tm/ltm/pool/~Common~testweb_pool/members/~Common~host1:80 -H 'Content-Type: application/json' -X PUT -d "{\"session\":\"user-enabled\"}"
You can adopt this using any language / REST client you like.
HTH
Martin
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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