Forum Discussion
REST API help Pool post
Hi all, I having problems adding the following 3 pieces of group configuration, I'm new to REST and my below POST is successful, but every time I try to add the following 3 additional requirements I get errors, how can i dd these correctly!
loadBalancingMode (least conns)
minActiveMembers (1)
priortyGroup (2 for TESTNODE1 and 1 for TESTNODE2)
curl -sk -H "X-F5-Auth-Token:5KUOFXCAENGCZ6XYNF5GKJJS4M" -H "Content-Type: application/json" -X POST https://10.10.10..10/mgmt/tm/ltm/pool -d '{"partition":"Common","name":"test","members":[{"name":"TESTNODE1:19500","address":"10.100.1.5"},{"name":"TESTNODE2:19500","address":"10.100.1.7"}],"monitor":"TEST"}'
error example when I try to add priorityGroup............
{"code":400,"message":"Found invalid JSON body in the request.","errorStack":[],"apiError":1}
bash-4.2$
bash-4.2$
- portoalegreNimbostratus
getting closer, was able to add PriorityGroup!
curl -sk -H "X-F5-Auth-Token:5KUOFXCAENGCZ6XYNF5GKJJS4M" -H "Content-Type: application/json" -X POST https://10.10.10..10/mgmt/tm/ltm/pool -d '{"partition":"Common","name":"test","members":[{"name":"TESTNODE1:19500","address":"10.100.1.5"","priorityGroup":2},{"name":"TESTNODE2:19500","address":"10.100.1.7"","priorityGroup":1}],"monitor":"TEST"}'
This leaves the below 2, really stick here!
loadBalancingMode (least conns)
minActiveMembers (1)
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