Skip to content

ServerGroupCopy

Samuel Grant edited this page Jun 23, 2020 · 2 revisions

Remarks

Clones a server group and its permissions. The new group will have a new name

Notes:

  1. Do not escape the channel name as it will be done within the function

  2. ssgid - Is the param for the group that will be cloned

  3. Server group names must be unique on the virtual server

Signature

Params

Name Type Description
ssgid int64 The server group ID of the group to be copied
newName string [Unique]: The desired name of the server group

Returns

Type Description
*status Query Response
int64 The ID of the server group (Returns -1 if the group could not be created)
error

Example

qres, groups, err := client.ServerGroupCopy(15, "Unescaped channel name")
if err != nil || !qres.IsSuccess {
  // Handle error or rejected server query 
}
  

Clone this wiki locally