Skip to main content

dtctl region list

Usage​

dtctl region list

Aliases​

l

Description​

Retrieve the list of DT Cloud regions available to your account, with their numeric IDs. Use an ID with dtctl region change to switch the active region.

Example​

dtctl region list

Response​

In text output (the default), this command returns the following columns: ID, Name.

Pass --output json to get the full response object instead.

Example output:

ID    Name
-- ----
1 Istanbul-Europe-1b (EU-SE-1b)
2 Istanbul-Asia-2a (EU-SE-2a)
CommandDescription
dtctl region changeSwitch the active region
dtctl region initSet the region to your first available region

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