Updating server group memberships

To change server group membership, use the PUT /pools/default/serverGroups HTTP method and URI.

HTTP method and URI

PUT /pools/default/serverGroups?rev=<:number>

PUT /pools/default/serverGroups?rev=<:number> updates the server’s group memberships.
In the following examples, the group name is optional.
If the group name is provided, it must match the current group name.
All servers must be mentioned and all groups must be mentioned.
The URI is used to identify the group.

This request moves servers from one server group to another.
This request does not permit server group renaming or removal.
In this example, the servers for Group 2 are moved to Group 1.

The following is the group information that is needed to update the server and server group memberships:

The PUT request is transactional.
The request either succeeds completely or fails without impact.
If all nodes or groups are not passed, a generic error message: "Bad input" occurs and the server group is removed.