how to add a node to a pre-existing pool?

Hi,

I’m new to iControl/rest api.. so please bear with me. I am able to create a new pool with members, but cannot figure out how to add new nodes to a pool after it is created.

For instance, this works:

curl -sk -u admin:[redacted] -H “Content-Type: application/json” -X POST -d ‘{“partition”:“WebServices-Live”,“name”:“test-pool1”,“members”:[{“name”:“testnode1:80”,“address”:“1.2.3.4”}]}’ https://bigip02/mgmt/tm/ltm/pool | jq .

But let’s say we build a node2 and want to add it to the pool. This is what I get in response:

curl -sk -u admin:[redacted] -H “Content-Type: application/json” -X POST -d ‘{“partition”:“WebServices-Live”,“name”:“test-pool1”,“members”:[{“name”:“testnode2:80”,“address”:“1.2.3.5”}]}’ https://bigip02/mgmt/tm/ltm/pool | jq . { “code”: 409, “message”: “01020066:3: The requested Pool (/WebServices-Live/test-pool1) already exists in partition WebServices-Live.”, “errorStack”: [] }

Is there a way to “append” a node to a pool?

Thanks in advance

POST is for creating, PUT is for updating.

https://devcentral.f5.com/articles/introducing-a-restful-interface-for-icontrol