CLI (odx)Command reference
odx volume
Manage volumes
odx volume add-label
Add labels to a volume
Usage:
odx volume add-label [--overwrite] <volume> <key=value>... [flags]
Flags:
-h, --help help for add-label
--overwrite overwrite labels that already existodx volume attach
Attach a volume to a server
Usage:
odx volume attach --server <server> <volume> [flags]
Flags:
-h, --help help for attach
--no-wait do not wait for the action to finish
--server string server name or ID (required)odx volume create
Create a volume
Usage:
odx volume create --name <name> --size <GB> (--server <server> | --location <location>) [flags]
Examples:
odx volume create --name data --size 10 --server web-1
Flags:
-h, --help help for create
--label stringArray label key=value (repeatable)
--location string location (required unless --server is given)
--name string volume name (required)
--no-wait do not wait for the action to finish
--server string attach to this server (name or ID)
--size int size in GB, 10 to 10240 (required)odx volume delete
Delete one or more volumes
Usage:
odx volume delete <volume>... [flags]
Flags:
-h, --help help for delete
--no-wait do not wait for the action to finishodx volume describe
Describe a volume
Usage:
odx volume describe <volume> [flags]
Flags:
-h, --help help for describe
-o, --output stringArray output format: json or yamlodx volume detach
Detach a volume from its server
Usage:
odx volume detach <volume> [flags]
Flags:
-h, --help help for detach
--no-wait do not wait for the action to finishodx volume disable-protection
Disable resource protection for a volume
Usage:
odx volume disable-protection <volume> delete [flags]
Flags:
-h, --help help for disable-protectionodx volume enable-protection
Enable resource protection for a volume
Usage:
odx volume enable-protection <volume> delete [flags]
Flags:
-h, --help help for enable-protectionodx volume list
List volumes.
Columns: age, created, id, labels, linux_device, location, name, protection, server, size, status
Usage:
odx volume list [options] [flags]
Aliases:
list, ls
Flags:
-h, --help help for list
-o, --output stringArray output format: json, yaml, noheader, columns=a,b,c (repeatable)
-l, --selector string label selector, e.g. env=prod,!tmpodx volume remove-label
Remove labels from a volume
Usage:
odx volume remove-label <volume> (--all | <key>...) [flags]
Flags:
-a, --all remove all labels
-h, --help help for remove-labelodx volume resize
Grow a volume
Usage:
odx volume resize --size <GB> <volume> [flags]
Flags:
-h, --help help for resize
--no-wait do not wait for the action to finish
--size int new size in GB (required)odx volume update
Update a volume
Usage:
odx volume update --name <name> <volume> [flags]
Flags:
-h, --help help for update
--name string new name