Skip to main content

dtctl elastic-ip update

Usage​

dtctl elastic-ip update <id> [flags]

Aliases​

u

Description​

Associate an elastic IP with a port (of a virtual machine or load balancer), or disassociate it. The resource's network must be routed to the elastic IP's external network.

Example​

# Associate an elastic IP with a VM's port
dtctl elastic-ip update <elastic-ip-id> --port-id <port-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, -fFixed IP on the port to associate with
--port-id, -pPort ID to associate with (omit to disassociate)
CommandDescription
dtctl elastic-ip listList elastic IPs
dtctl elastic-ip showShow an elastic IP
dtctl elastic-ip createAllocate 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