server_groups.go
func (c *Client) MoveServersToServerGroup(src string, dst string, serverIds []string) (*ServerGroup, error) {
	group := new(ServerGroup)
	opts := serverGroupMemberOptions{Destination: dst}
	for _, id := range serverIds {
		opts.Servers = append(opts.Servers, serverGroupMember{Server: id})
	}
	_, err := c.MakeApiRequest("POST", "/1.0/server_groups/"+src+"/move_servers", opts, &group)
	if err != nil {
		return nil, err
	}
	return group, nil
}
func (c *Client) MoveServersToServerGroup(src string, dst string, serverIds []string) (*ServerGroup, error) {
	group := new(ServerGroup)
	opts := serverGroupMemberOptions{Destination: dst}
	for _, id := range serverIds {
		opts.Servers = append(opts.Servers, serverGroupMember{Server: id})
	}
	_, err := c.MakeApiRequest("POST", "/1.0/server_groups/"+src+"/move_servers", opts, &group)
	if err != nil {
		return nil, err
	}
	return group, nil
}
func ( c * Client ) MoveServersToServerGroup ( src string , dst string , serverIds [ ] string ) ( * ServerGroup , error ) { group := new ( ServerGroup ) opts := serverGroupMemberOptions { Destination : dst } for _ , id := range serverIds { opts . Servers = append ( opts . Servers , serverGroupMember { Server : id } ) } _ , err := c . MakeApiRequest ( " " , " " + src + " " , opts , & group ) if err != nil { return nil , err } return group , nil }
// MoveServersToServerGroup atomically moves servers from one group to another.
//
// The src parameter specifies the group to which the servers currently belong
//
// The dst parameter specifies the group to which you want to move the servers.
//
// The serverIds parameter specifies the identifiers of the servers you want to move.
MoveServersToServerGroup atomically moves servers from one group to another . The src parameter specifies the group to which the servers currently belong The dst parameter specifies the group to which you want to move the servers . The serverIds parameter specifies the identifiers of the servers you want to move .