doctl compute volume-action

Go to Navigation

Usage

doctl compute volume-action [flags]

Description

Block storage volume action commands allow you to attach, detach, and resize existing volumes.

Flags

OptionDescription
--help, -hHelp for this command
CommandDescription
doctl computeDisplay commands that manage infrastructure
doctl compute volume-action attachAttach a volume to a Droplet
doctl compute volume-action detachDetach a volume from a Droplet
doctl compute volume-action detach-by-droplet-id(Deprecated) Detach a volume. Use `detach` instead.
doctl compute volume-action getRetrieve the status of a volume action
doctl compute volume-action listRetrieve a list of actions taken on a volume
doctl compute volume-action resizeResize the disk of a volume

Global Flags

OptionDescription
--access-token, -tAPI V2 access token
--api-url, -uOverride default API endpoint
--config, -cSpecify a custom config file
Default:
  • macOS: ${HOME}/Library/Application Support/doctl/config.yaml
  • Linux: ${XDG_CONFIG_HOME}/doctl/config.yaml
  • Windows: %APPDATA%\doctl\config.yaml
--contextSpecify a custom authentication context name
--output, -oDesired output format [text|json]
Default: text
--traceShow a log of network activity while performing a command
Default: false
--verbose, -vEnable verbose output
Default: false