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
| Option | Description |
|---|---|
--fixed-ip, -f | Specific fixed IP to assign (otherwise assigned automatically) |
--network-id, -i | External (public) network ID to allocate from (required) |
--port-id, -p | Port ID to associate the elastic IP with |
--subnet-id, -s | Subnet ID to allocate the address from |
Related Commands
| Command | Description |
|---|---|
| dtctl elastic-ip list | List elastic IPs |
| dtctl elastic-ip show | Show an elastic IP |
| dtctl elastic-ip update | Associate or disassociate an elastic IP |
| dtctl elastic-ip delete | Release an elastic IP |
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 |