Skip to content

ServerGroupAdd

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

Remarks

Creates a server group with a given name

Notes:

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

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

Signature

Params

Name Type Description
name 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.ServerGroupAdd("Unescaped channel name")
if err != nil || !qres.IsSuccess {
  // Handle error or rejected server query 
}
  

Clone this wiki locally