Adding servers to server groups
HTTP method and URI
POST /pools/default/serverGroups/<:uuid>/addNode adds a server to a cluster and assigns it to the specified server group.
POST /pools/default/serverGroups/<:uuid>/addNode
Syntax
curl -X POST -dhostname=<host>:<port>
-u <administrator>:<password>
http://<host>:<port>/pools/default/serverGroups/<uuid>/addNode
Example
curl -X POST -dhostname=192.168.0.2:8091
-u Admin:myPassword
http://192.168.0.1:8091/pools/default/serverGroups/246b5de857e100dbfd8b6dee0406420a/addNode
The server group’s UUID is in the group information
"name":"Group 2",
"uri":"/pools/default/serverGroups/d55339548767ceb51b241c61e3b9f036",
"addNodeURI":"/pools/default/serverGroups/d55339548767ceb51b241c61e3b9f036/addNode",