Skip to content
Odinex Cloud
CLI (odx)Command reference

odx floating-ip

Manage floating IPs

odx floating-ip add-label

Add labels to a floating IP

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

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

odx floating-ip assign

Assign a floating IP to a server

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

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

odx floating-ip create

Create a floating IP

Usage:
  odx floating-ip create --type ipv4|ipv6 (--location <location> | --server <server>) [options] [flags]

Flags:
      --description string   description
  -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)
      --type string          ipv4 or ipv6 (required)

odx floating-ip delete

Delete one or more floating IPs

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

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

odx floating-ip describe

Describe a floating IP

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

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

odx floating-ip disable-protection

Disable resource protection for a floating IP

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

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

odx floating-ip enable-protection

Enable resource protection for a floating IP

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

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

odx floating-ip list

List floating IPs.

Columns: age, blocked, created, description, dns, id, ip, labels, location, name, protection, server, type

Usage:
  odx floating-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 floating-ip remove-label

Remove labels from a floating IP

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

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

odx floating-ip set-rdns

Set the reverse DNS entry of a floating IP

Usage:
  odx floating-ip set-rdns (--hostname <hostname> | --reset) <floating-ip> [flags]

Flags:
  -h, --help              help for set-rdns
  -r, --hostname string   hostname for the PTR record
      --no-wait           do not wait for the action to finish
      --reset             reset the PTR record

odx floating-ip unassign

Unassign a floating IP

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

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

odx floating-ip update

Update a floating IP

Usage:
  odx floating-ip update [--name <name>] [--description <text>] <floating-ip> [flags]

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

On this page