-
Notifications
You must be signed in to change notification settings - Fork 1
ServerGroupAdd
Samuel Grant edited this page Jun 23, 2020
·
2 revisions
Creates a server group with a given name
Notes:
-
Do not escape the channel name as it will be done within the function
-
Server group names must be unique on the virtual server
| Name | Type | Description |
|---|---|---|
| name | string | [Unique]: The desired name of the server group |
| Type | Description |
|---|---|
| *status | Query Response |
| int64 | The ID of the server group (Returns -1 if the group could not be created) |
| error |
qres, groups, err := client.ServerGroupAdd("Unescaped channel name")
if err != nil || !qres.IsSuccess {
// Handle error or rejected server query
}