-
Notifications
You must be signed in to change notification settings - Fork 1
ServerGroupCopy
Samuel Grant edited this page Jun 23, 2020
·
2 revisions
Clones a server group and its permissions. The new group will have a new name
Notes:
-
Do not escape the channel name as it will be done within the function
-
ssgid - Is the param for the group that will be cloned
-
Server group names must be unique on the virtual server
| 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 |
| 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.ServerGroupCopy(15, "Unescaped channel name")
if err != nil || !qres.IsSuccess {
// Handle error or rejected server query
}