cancel
Showing results for 
Search instead for 
Did you mean: 
Login & Join the DevCentral Connects Group to watch the Recorded LiveStream (May 12) on Basic iControl Security - show notes included.

REST API help Pool post

portoalegre
Nimbostratus
Nimbostratus

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$ 

 

 

 

 

 

1 REPLY 1

portoalegre
Nimbostratus
Nimbostratus

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)