Skip to main content

dtctl snapshot create-volume

Usage​

dtctl snapshot create-volume [flags]

Aliases​

cv

Description​

Create a new volume from a snapshot.

Example​

dtctl snapshot create-volume --snapshot-id <snapshot-id> --volume-name restored --volume-size 20 --volume-type default

Flags​

OptionDescription
--snapshot-id, -iID of the snapshot to create the volume from (required)
--volume-name, -nName for the new volume (required)
--volume-size, -sSize of the new volume in GB (required)
--volume-type, -tStorage policy name for the new volume, e.g. HI-IOPS (see 'dtctl volume storage-policies') (required)
CommandDescription
dtctl snapshot listList snapshots
dtctl snapshot showShow a snapshot
dtctl snapshot createCreate a snapshot
dtctl snapshot create-imageCreate an image from a snapshot
dtctl snapshot updateUpdate a snapshot
dtctl snapshot deleteDelete a snapshot

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