Forum Discussion
Faintly_Lucky
Nimbostratus
Nov 06, 2015REST - Any way to add multiple pool members in the same request?
I can add a single member at time and I can use a for loop to add multiple members to a given pool. The sticking point is when I have to add the same 30 members to 110 pools. It's doable with a for l...
Jad_Tabbara__J1
Cirrostratus
Oct 27, 2017Hello Stephan,
On v13 it is supported. Could you try it on v12.1.2 using this format :
Create a pool called ipool2
curl -sk -u admin:admin -H "Content-Type: application/json" -X POST https://X.X.X.X/mgmt/tm/ltm/pool -d '{"name":"ipool2" }'
Add multiple member to that pool
curl -sk -u admin:admin -H "Content-Type: application/json" -X PUT https://X.X.X.X/mgmt/tm/ltm/pool/~Common~ipool2 -d '{"members":[{"name":"1.1.1.1:8080"},{"name":"2.2.2.2:8080"}]}'
Hope it helps
Please give me a feedback .
Regards
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