CLI (odx)Command reference
odx nat-gateway
Manage NAT gateways
odx nat-gateway add-label
Add labels to a NAT gateway
Usage:
odx nat-gateway add-label [--overwrite] <nat-gateway> <key=value>... [flags]
Flags:
-h, --help help for add-label
--overwrite overwrite labels that already existodx nat-gateway create
Create a NAT gateway for a network.
A network has at most one NAT gateway. It takes the network's first host as the default gateway: servers without public IPs in the network reach the internet from the NAT gateway's public IPv4.
Usage:
odx nat-gateway create --network <network> [--name <name>] [flags]
Examples:
odx nat-gateway create --network backend --name backend-nat
Flags:
-h, --help help for create
--label stringArray label key=value (repeatable)
--name string name (default: derived from the network)
--network string network name or ID (required)
--no-wait do not wait for the action to finishodx nat-gateway delete
Delete one or more NAT gateways
Usage:
odx nat-gateway delete <nat-gateway>... [flags]
Flags:
-h, --help help for delete
--no-wait do not wait for the action to finishodx nat-gateway describe
Describe a NAT gateway
Usage:
odx nat-gateway describe <nat-gateway> [flags]
Flags:
-h, --help help for describe
-o, --output stringArray output format: json or yamlodx nat-gateway list
List NAT gateways.
Columns: age, created, id, labels, location, name, network, private_ip, public_ip, status
Usage:
odx nat-gateway list [options] [flags]
Aliases:
list, ls
Flags:
-h, --help help for list
-o, --output stringArray output format: json, yaml, noheader, columns=a,b,c (repeatable)
-l, --selector string label selector, e.g. env=prod,!tmpodx nat-gateway remove-label
Remove labels from a NAT gateway
Usage:
odx nat-gateway remove-label <nat-gateway> (--all | <key>...) [flags]
Flags:
-a, --all remove all labels
-h, --help help for remove-labelodx nat-gateway update
Update a NAT gateway
Usage:
odx nat-gateway update --name <name> <nat-gateway> [flags]
Flags:
-h, --help help for update
--name string new name