Chris_Olson
Jan 08, 2021Nimbostratus
Icontrol RestAPI enable/disable multiple pool members/multiple pools
We moved data centers and no longer have CL access to the F5. The only option is Rest API. We need the ability to remove enable or disable multiple servers from multiple pools. The syntax I have is below which is fine for a single server and a single pool. I need the ability to remove multiple servers from multiple pools. Can we reference a text file with members/pools? I am a network admin, not a developer so limited experience.
For example, to disable the pool member test_node:80 for test_pool, enter the following command:
<PATCH> /mgmt/tm/ltm/pool/test_pool_too/members/~Common~test_node:80/ -d '{"session":"user-disabled"}'