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
| Option | Description |
|---|---|
--image-name, -n | Name for the new image. Required for the create-image action. |
--new-size, -s | New size in GB. Required for the extend action. |
--new-type, -t | New storage policy. Required for the retype action. |
--snapshot-id, -b | Snapshot ID to revert to. Required for the revert action. |
--volume-id, -i | ID of the volume to perform the action on (required) |
Related Commands
| Command | Description |
|---|---|
| dtctl volume list | List volumes |
| dtctl volume show | Show a volume |
| dtctl volume create | Create a volume |
| dtctl volume update | Update a volume |
| dtctl volume delete | Delete a volume |
| dtctl volume attach | Attach a volume to a VM |
| dtctl volume clone | Clone a volume |
| dtctl volume detach | Detach a volume from a VM |
| dtctl volume snapshots | List a volume's snapshots |
| dtctl volume storage-policies | List storage policies |
Global Flags
| Option | Description |
|---|---|
--api-url | Send this command to a different API endpoint, e.g. a test environment (default "https://console.dt.net.tr/api/v1") |
--config, -c | Specify a custom config file Default: ~/.config/dtctl/config.yaml |
--no-headers | Omit the column headers, for scripting Default: false |
--output, -o | Output format: text, wide, vertical, json. text fits the terminal, wide never truncates, vertical prints one field per line Default: text |