Skip to main content

dtctl image action

Usage​

dtctl image action <action_name> [flags]

Aliases​

a

Description​

Update image metadata. The action name is a positional argument. Available actions: rename, change-min-volume-size, change-os-type. rename requires --image-name, change-min-volume-size requires --image-size, and change-os-type requires --os-type.

Example​

# Rename an image
dtctl image action rename --image-id <image-id> --image-name new-name

Flags​

OptionDescription
--image-id, -iID of the image to update (required)
--image-name, -nNew name for the image. Required for the rename action.
--image-size, -sNew minimum volume size in GB. Required for the change-min-volume-size action.
--os-type, -tNew OS type. Required for the change-os-type action.
CommandDescription
dtctl image listList images
dtctl image showShow an image
dtctl image deleteDelete an image
dtctl image versionsList image versions

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