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
| Option | Description |
|---|---|
--image-id, -i | ID of the image to update (required) |
--image-name, -n | New name for the image. Required for the rename action. |
--image-size, -s | New minimum volume size in GB. Required for the change-min-volume-size action. |
--os-type, -t | New OS type. Required for the change-os-type action. |
Related Commands
| Command | Description |
|---|---|
| dtctl image list | List images |
| dtctl image show | Show an image |
| dtctl image delete | Delete an image |
| dtctl image versions | List image versions |
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 |