Skip to content

upctl servergroup create

Create a server group

upctl servergroup create [flags]

Examples

upctl servergroup create \
                --title my-server-group \
                --anti-affinity-policy yes \
                --server 1fdfda29-ead1-4855-b71f-a432179800ab \
                --server my-server
upctl servergroup create \
                --title my-server-group \
                --anti-affinity-policy yes \
                --label env=dev
upctl servergroup create \
                --title my-server-group \
                --anti-affinity-policy strict \
                --label env=dev \
                --label owner=operations

Options

Option Description
--title Server group title.
--anti-affinity-policy Anti-affinity policy. Valid values are yes (best effort), strict and no. Will take effect upon server start.
Default: yes
--label Labels to describe the server group in key=value format, multiple can be declared.
Usage: --label env=dev

--label owner=operations
Default: []
--server Servers to be added to the server group, multiple can be declared.
Usage: --server my-server

--server 00333d1b-3a4a-4b75-820a-4a56d70395dd
Default: []
--help, -h help for create
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