For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

portoalegre's avatar
portoalegre
Icon for Nimbostratus rankNimbostratus
Nov 10, 2020

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$ 

 

 

 

 

 

1 Reply

  • 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)