Nav

Create a Server Group

The POST operation creates a new server group. The JSON server group data structure should contain one property, name, which is the name of the group to be created.

Example Request:


       
    
1
2
3
4
POST http://localhost:8080/console/api/serverGroups
Content-Type: application/json
 
{ "name" : "NewGroupName" }

Example Response:


       
    
1
2
3
4
5
6
7
8
9
10
11
12
201
Content-Type: application/json
Server: Apache-Coyote/1.1
Location: http://localhost:8080/console/api/serverGroups/73d89173-290e-4cb3-a61c-e11deb74767d
Date: Sun, 08 Nov 2009 00:12:55 GMT
  
{
  "name" : "NewGroupName",
  "id" : "73d89173-290e-4cb3-a61c-e11deb74767d",
  "serverCount" : 0,
  "href" : "http://localhost:8080/console/api/serverGroups/73d89173-290e-4cb3-a61c-e11deb74767d"
}