python-openstackclient/doc/source/command-objects/floating-ip.rst
Kevin_Zheng 847da51dea change os in command example to openstack(2)
In the current doc, the command examples are like
"os server create" but the acutal command should
be started with "openstack" instead of "os", it
is misleading to first time users.

Change-Id: I80c96f0938cec382f2f714a500138bd5a2c81aa0
2016-12-20 09:18:55 +08:00

3.3 KiB

floating ip

Compute v2, Network v2

floating ip create

Create floating IP

floating ip create

openstack floating ip create
    [--subnet <subnet>]
    [--port <port>]
    [--floating-ip-address <floating-ip-address>]
    [--fixed-ip-address <fixed-ip-address>]
    [--description <description>]
    [--project <project> [--project-domain <project-domain>]]
    <network>

--subnet <subnet>

Subnet on which you want to create the floating IP (name or ID) Network version 2 only

--port <port>

Port to be associated with the floating IP (name or ID) Network version 2 only

--floating-ip-address <floating-ip-address>

Floating IP address Network version 2 only

--fixed-ip-address <fixed-ip-address>

Fixed IP address mapped to the floating IP Network version 2 only

--description <description>

Set floating IP description Network version 2 only

--project <project>

Owner's project (name or ID)

Network version 2 only

--project-domain <project-domain>

Domain the project belongs to (name or ID). This can be used in case collisions between project names exist.

Network version 2 only

<network>

Network to allocate floating IP from (name or ID)

floating ip delete

Delete floating IP(s)

floating ip delete

openstack floating ip delete <floating-ip> [<floating-ip> ...]

<floating-ip>

Floating IP(s) to delete (IP address or ID)

floating ip list

List floating IP(s)

floating ip list

openstack floating ip list
    [--network <network>]
    [--port <port>]
    [--fixed-ip-address <fixed-ip-address>]
    [--long]
    [--status <status>]
    [--project <project> [--project-domain <project-domain>]]
    [--router <router>]

--network <network>

List floating IP(s) according to given network (name or ID)

Network version 2 only

--port <port>

List floating IP(s) according to given port (name or ID)

Network version 2 only

--fixed-ip-address <fixed-ip-address>

List floating IP(s) according to given fixed IP address

Network version 2 only

--long

List additional fields in output

Network version 2 only

--status <status>

List floating IP(s) according to given status ('ACTIVE', 'DOWN')

Network version 2 only

--project <project>

List floating IP(s) according to given project (name or ID)

Network version 2 only

--project-domain <project-domain>

Domain the project belongs to (name or ID). This can be used in case collisions between project names exist.

Network version 2 only

--router <router>

List floating IP(s) according to given router (name or ID)

Network version 2 only

floating ip show

Display floating IP details

floating ip show

openstack floating ip show <floating-ip>

<floating-ip>

Floating IP to display (IP address or ID)