Creating Server Groups

Server groups are created with the POST /pools/default/serverGroups HTTP method and URI.

HTTP method and URI

POST /pools/default/serverGroups creates a server group with a specific name. In the following example, Group A is created. If the group name has a space, for example, Group A, use double quotes; for example, "Group A".

POST /pools/default/serverGroups

Syntax

curl -X POST -u <administrator>:<password>
  http://<host>:<port>/pools/default/serverGroups
  -d name="<groupName>"

Example

curl -X POST -u myAdmin:myPassword \
  http://192.168.0.1:8091/pools/default/serverGroups \
  -d 'name="Group A"'