Forum Discussion
REST - Any way to add multiple pool members in the same request in BIG-IP 13.0.0 Build 2.0.1671 Hotfix HF2
Thanks Satoshi San for the thorough explanation (+1).
I would like to add a equivalent for
modify ltm pool <pool_name> members noneBy using PATCH with an empty list all pool members can be deleted, i.e.:
curl -svk -u admin: -X PATCH -H 'Content-Type: application/json' -d '{"members": []}' https://localhost/mgmt/tm/ltm/pool/pool_test_app001Instead of using the "membersReference":{"items":[{ "name":"<node-name>:<port>","partition":"<partition-name>" }]}
syntax you may use the following one as well. It includes some additional parameters, i.e. (tested in TMOS v14.1.2):
curl -svk -u admin: -X PATCH -H 'Content-Type: application/json' -d '{"members": [ {"name": "node_c:80", "address": "10.131.131.103", "session": "user-disabled"}, {"name": "node_d:80", "address": "10.131.131.104", "session": "user-disabled"}]}' https://localhost/mgmt/tm/ltm/pool/pool_test_app001Ideally we would have the ability to POST, PUT or PATCH on https://<hostname>/mgmt/tm/ltm/pool/<pool-name>/members level with lists of items (i.e. to add multiple pool members to existing ones in a single step). This can be done already in tmsh. Via API it seems like we have to add multiple members one by one.
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