Skip to main content

dtctl elastic-ip create

Usage​

dtctl elastic-ip create [flags]

Aliases​

c

Description​

Allocate an elastic IP from an external (public) network (see dtctl network list --network-type Physical). It can be left unassigned, or associated with a port at creation time.

Example​

dtctl elastic-ip create --network-id <external-network-id>

Response​

In text output (the default), this command returns the following columns: ID, IP Address, Status, Network ID, Router ID, Port ID, Fixed IP, Description, QoS Policy ID, Created At, Updated At, Revision Number.

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

Flags​

OptionDescription
--fixed-ip, -fSpecific fixed IP to assign (otherwise assigned automatically)
--network-id, -iExternal (public) network ID to allocate from (required)
--port-id, -pPort ID to associate the elastic IP with
--subnet-id, -sSubnet ID to allocate the address from
CommandDescription
dtctl elastic-ip listList elastic IPs
dtctl elastic-ip showShow an elastic IP
dtctl elastic-ip updateAssociate or disassociate an elastic IP
dtctl elastic-ip deleteRelease an elastic IP

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