Forum Discussion
Disable multiple Poolmember with BigIq & Rest API
Hi Theo, Sorry the late response. Yes, you can enable/disable pool members with this self-service task call using 5.1 Big-IQ. 'https://'iq_address'/mgmt/cm/adc-core/tasks/self-service'
Here is a script that will allow you to populate a csv with pool members to perform some action against all.
https://github.com/carldubois/adcapi
Example usage:
ACTION TO ENABLE
./modify_pool_member.py -op enable -name app_serv-1_pool -iq 10.255.72.20 -iq_user admin -iq_pass admin -csv members.csv Enumerate all pool mambers to find: app_serv-1_pool Found pool: app_serv-1_pool INFO: Perform action enable on pool member boston-node_1:1723 INFO: Perform action enable on pool member 10.55.2.20:80 INFO: BIG-IQ 10.255.72.20 pool member operation. SUCCESS
LIST ALL POOL MEMBERS
./modify_pool_member.py -op enable -name app_serv-1_pool -iq 10.255.72.20 -iq_user admin -iq_pass admin -csv members.csv -list Enumerate all pool mambers to find: app_serv-1_pool Found pool: app_serv-1_pool Pool member 10.44.101.52:443: State user-up: Session user-disabled Pool member boston-node_1:1723: State user-up: Session user-enabled Pool member seattle-node_1:23: State user-up: Session user-disabled Pool member 10.55.2.20:80: State user-up: Session user-enabled INFO: BIG-IQ 10.255.72.20 pool member operation. SUCCESS
members csv
boston-node_1:1723 10.55.2.20:80
Hope this helps
THX, it works.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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