Skip to content
Odinex Cloud
CLI (odx)Command reference

odx elastic-ip

Manage Elastic IPs

odx elastic-ip add-label

Add labels to an Elastic IP

Usage:
  odx elastic-ip add-label [--overwrite] <elastic-ip> <key=value>... [flags]

Flags:
  -h, --help        help for add-label
      --overwrite   overwrite labels that already exist

odx elastic-ip assign

Assign an Elastic IP to a server without public IPs

Usage:
  odx elastic-ip assign <elastic-ip> <server> [flags]

Flags:
  -h, --help      help for assign
      --no-wait   do not wait for the action to finish

odx elastic-ip create

Create an Elastic IP.

An Elastic IP gives a server without public IPs a public IPv4 of its own. The server's network must have a NAT gateway.

Usage:
  odx elastic-ip create (--location <location> | --server <server>) [options] [flags]

Examples:
  odx elastic-ip create --name app-ip --server app-1

Flags:
  -h, --help                help for create
      --label stringArray   label key=value (repeatable)
      --location string     location (required unless --server is given)
      --name string         name
      --no-wait             do not wait for the action to finish
      --server string       assign to this server (name or ID)

odx elastic-ip delete

Delete one or more Elastic IPs

Usage:
  odx elastic-ip delete <elastic-ip>... [flags]

Flags:
  -h, --help      help for delete
      --no-wait   do not wait for the action to finish

odx elastic-ip describe

Describe an Elastic IP

Usage:
  odx elastic-ip describe <elastic-ip> [flags]

Flags:
  -h, --help                 help for describe
  -o, --output stringArray   output format: json or yaml

odx elastic-ip disable-protection

Disable resource protection for an Elastic IP

Usage:
  odx elastic-ip disable-protection <elastic-ip> delete [flags]

Flags:
  -h, --help   help for disable-protection

odx elastic-ip enable-protection

Enable resource protection for an Elastic IP

Usage:
  odx elastic-ip enable-protection <elastic-ip> delete [flags]

Flags:
  -h, --help   help for enable-protection

odx elastic-ip list

List Elastic IPs.

Columns: age, created, id, ip, labels, location, name, protection, server

Usage:
  odx elastic-ip 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,!tmp

odx elastic-ip remove-label

Remove labels from an Elastic IP

Usage:
  odx elastic-ip remove-label <elastic-ip> (--all | <key>...) [flags]

Flags:
  -a, --all    remove all labels
  -h, --help   help for remove-label

odx elastic-ip unassign

Unassign an Elastic IP

Usage:
  odx elastic-ip unassign <elastic-ip> [flags]

Flags:
  -h, --help      help for unassign
      --no-wait   do not wait for the action to finish

odx elastic-ip update

Update an Elastic IP

Usage:
  odx elastic-ip update --name <name> <elastic-ip> [flags]

Flags:
  -h, --help          help for update
      --name string   new name

On this page