Skip to content

upctl servergroup modify

Modify a server group

upctl servergroup modify <UUID/Title...> [flags]

Examples

upctl servergroup modify 8abc8009-4325-4b23-4321-b1232cd81231 --title your-server-group
upctl servergroup modify my-server-group --anti-affinity-policy strict
upctl servergroup modify my-server-group --server my-server-1 --server my-server-2 --server my-server-3-
upctl servergroup modify 8abc8009-4325-4b23-4321-b1232cd81231 --server 0bab98e5-b327-4ab8-ba16-738d4af7578b --server my-server-2
upctl servergroup modify my-server-group --label env=dev

Options

Option Description
--anti-affinity-policy Anti-affinity policy. Valid values are yes (best effort), strict and no. Will take effect upon server start.
--label Labels to describe the server in key=value format, multiple can be declared. If set, all the existing labels will be replaced with provided ones.
Usage: --label env=dev

--label owner=operations
Default: []
--title New server group title.
--server Servers that belong to the server group, multiple can be declared. If set, all the existing server entries will be replaced with provided ones.
Usage: --server my-server

--server 00333d1b-3a4a-4b75-820a-4a56d70395dd
Default: []
--help, -h help for modify
Default: false

Global options

Option Description
--client-timeout, -t Client timeout to use in API calls.
Default: 0s
--config Configuration file path.
--debug Print out more verbose debug logs.
Default: false
--force-colours Force coloured output despite detected terminal support.
--no-colours Disable coloured output despite detected terminal support. Colours can also be disabled by setting NO_COLOR environment variable.
--output, -o Output format (supported: json, yaml and human)
Default: human
Command Description
upctl servergroup Manage server groups