F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

1up_175347's avatar
1up_175347
Icon for Nimbostratus rankNimbostratus
Oct 29, 2014

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

 

1 Reply

  • POST is for creating, PUT is for updating.

     

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