doctl compute volume-action

Go to Navigation

Description

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

Flags

Option Description
--help , -h Help for this command
Command Description
doctl compute Display commands that manage infrastructure
doctl compute volume-action attach Attach a volume to a Droplet
doctl compute volume-action detach Detach a volume from a Droplet
doctl compute volume-action detach-by-droplet-id (Deprecated) Detach a volume. Use `detach` instead.
doctl compute volume-action get Retrieve the status of a volume action
doctl compute volume-action list Retrieve a list of actions taken on a volume
doctl compute volume-action resize Resize the disk of a volume

Global Flags

Option Description
--access-token, -t API V2 access token
--api-url, -u Override default API endpoint
--config, -c Specify 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
--context Specify a custom authentication context name
--output, -o Desired output format [text|json]
Default: text
--trace Show a log of network activity while performing a command
Default: false
--verbose, -v Enable verbose output
Default: false