Skip to main content

dtctl volume action

Usage​

dtctl volume action <action_name> [flags]

Aliases​

va

Description​

Perform an action on a volume. The action name is a positional argument. Available actions: extend, create-image, revert, retype. extend requires --new-size, create-image requires --image-name, revert requires --snapshot-id, and retype requires --new-type.

Example​

# Extend a volume to 40 GB
dtctl volume action extend --volume-id <volume-id> --new-size 40

Flags​

OptionDescription
--image-name, -nName for the new image. Required for the create-image action.
--new-size, -sNew size in GB. Required for the extend action.
--new-type, -tNew storage policy. Required for the retype action.
--snapshot-id, -bSnapshot ID to revert to. Required for the revert action.
--volume-id, -iID of the volume to perform the action on (required)
CommandDescription
dtctl volume listList volumes
dtctl volume showShow a volume
dtctl volume createCreate a volume
dtctl volume updateUpdate a volume
dtctl volume deleteDelete a volume
dtctl volume attachAttach a volume to a VM
dtctl volume cloneClone a volume
dtctl volume detachDetach a volume from a VM
dtctl volume snapshotsList a volume's snapshots
dtctl volume storage-policiesList storage policies

Global Flags​

OptionDescription
--api-urlSend this command to a different API endpoint, e.g. a test environment (default "https://console.dt.net.tr/api/v1")
--config, -cSpecify a custom config file
Default: ~/.config/dtctl/config.yaml
--no-headersOmit the column headers, for scripting
Default: false
--output, -oOutput format: text, wide, vertical, json. text fits the terminal, wide never truncates, vertical prints one field per line
Default: text