Creating Server Groups

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      


curl -X POST -u <administrator>:<password> 
  -d name="<groupName>"


curl -X POST -u myAdmin:myPassword \ \ 
  -d 'name="Group A"'