Chapter 35. floating


This chapter describes the commands under the floating command.

35.1. floating ip create

Usage:

openstack floating ip create [-h] [-f {json,shell,table,value,yaml}]

                                  [-c COLUMN] [--max-width <integer>]
                                  [--fit-width] [--print-empty] [--noindent]
                                  [--prefix PREFIX] [--subnet <subnet>]
                                  [--port <port>]
                                  [--floating-ip-address <ip-address>]
                                  [--fixed-ip-address <ip-address>]
                                  [--qos-policy <qos-policy>]
                                  [--description <description>]
                                  [--project <project>]
                                  [--project-domain <project-domain>]
                                  [--tag <tag> | --no-tag]
                                  <network>
Copy to Clipboard Toggle word wrap

Create floating IP

Expand
Table 35.1. Positional Arguments
ValueSummary

<network>

Network to allocate floating ip from (name or id)

Expand
Table 35.2. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--subnet <subnet>

Subnet on which you want to create the floating ip (name or ID)

--port <port>

Port to be associated with the floating ip (name or ID)

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

Floating IP address

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

Fixed IP address mapped to the floating IP

--qos-policy <qos-policy>

Attach QoS policy to the floating IP (name or ID)

--description <description>

Set floating IP description

--project <project>

Owner’s project (name or id)

--project-domain <project-domain>

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

--tag <tag>

Tag to be added to the floating ip (repeat option to set multiple tags)

--no-tag

No tags associated with the floating ip

Expand
Table 35.3. Output Formatters
ValueSummary

-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml}

the output format, defaults to table

-c COLUMN, --column COLUMN

specify the column(s) to include, can be repeated

Expand
Table 35.4. Table Formatter
ValueSummary

--max-width <integer>

Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence.

--fit-width

Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable

--print-empty

Print empty table if there is no data to show.

Expand
Table 35.5. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 35.6. shell formatter
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

35.2. floating ip delete

Usage:

openstack floating ip delete [-h] <floating-ip> [<floating-ip> ...]
Copy to Clipboard Toggle word wrap

Delete floating IP(s)

Expand
Table 35.7. Positional Arguments
ValueSummary

<floating-ip>

Floating ip(s) to delete (ip address or id)

Expand
Table 35.8. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

35.3. floating ip list

Usage:

openstack floating ip list [-h] [-f {csv,json,table,value,yaml}]

                                [-c COLUMN] [--max-width <integer>]
                                [--fit-width] [--print-empty] [--noindent]
                                [--quote {all,minimal,none,nonnumeric}]
                                [--sort-column SORT_COLUMN]
                                [--network <network>] [--port <port>]
                                [--fixed-ip-address <ip-address>] [--long]
                                [--status <status>] [--project <project>]
                                [--project-domain <project-domain>]
                                [--router <router>]
                                [--tags <tag>[,<tag>,...]]
                                [--any-tags <tag>[,<tag>,...]]
                                [--not-tags <tag>[,<tag>,...]]
                                [--not-any-tags <tag>[,<tag>,...]]
Copy to Clipboard Toggle word wrap

List floating IP(s)

Expand
Table 35.9. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--network <network>

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

--port <port>

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

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

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

--long

List additional fields in output

--status <status>

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

--project <project>

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

--project-domain <project-domain>

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

--router <router>

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

--tags <tag>[,<tag>,…​]

List floating IP which have all given tag(s) (Comma- separated list of tags)

--any-tags <tag>[,<tag>,…​]

List floating IP which have any given tag(s) (Comma- separated list of tags)

--not-tags <tag>[,<tag>,…​]

Exclude floating IP which have all given tag(s) (Comma-separated list of tags)

--not-any-tags <tag>[,<tag>,…​]

Exclude floating IP which have any given tag(s) (Comma-separated list of tags)

Expand
Table 35.10. Output Formatters
ValueSummary

-f {csv,json,table,value,yaml}, --format {csv,json,table,value,yaml}

the output format, defaults to table

-c COLUMN, --column COLUMN

specify the column(s) to include, can be repeated

--sort-column SORT_COLUMN

specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated

Expand
Table 35.11. Table Formatter
ValueSummary

--max-width <integer>

Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence.

--fit-width

Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable

--print-empty

Print empty table if there is no data to show.

Expand
Table 35.12. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 35.13. CSV Formatter
ValueSummary

--quote {all,minimal,none,nonnumeric}

when to include quotes, defaults to nonnumeric

35.4. floating ip pool list

Usage:

openstack floating ip pool list [-h] [-f {csv,json,table,value,yaml}]

                                     [-c COLUMN] [--max-width <integer>]
                                     [--fit-width] [--print-empty]
                                     [--noindent]
                                     [--quote {all,minimal,none,nonnumeric}]
                                     [--sort-column SORT_COLUMN]
Copy to Clipboard Toggle word wrap

List pools of floating IP addresses

Expand
Table 35.14. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 35.15. Output Formatters
ValueSummary

-f {csv,json,table,value,yaml}, --format {csv,json,table,value,yaml}

the output format, defaults to table

-c COLUMN, --column COLUMN

specify the column(s) to include, can be repeated

--sort-column SORT_COLUMN

specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated

Expand
Table 35.16. Table Formatter
ValueSummary

--max-width <integer>

Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence.

--fit-width

Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable

--print-empty

Print empty table if there is no data to show.

Expand
Table 35.17. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 35.18. CSV Formatter
ValueSummary

--quote {all,minimal,none,nonnumeric}

when to include quotes, defaults to nonnumeric

35.5. floating ip set

Usage:

openstack floating ip set [-h] [--port <port>]

                               [--fixed-ip-address <ip-address>]
                               [--qos-policy <qos-policy> | --no-qos-policy]
                               [--tag <tag>] [--no-tag]
                               <floating-ip>
Copy to Clipboard Toggle word wrap

Set floating IP Properties

Expand
Table 35.19. Positional Arguments
ValueSummary

<floating-ip>

Floating ip to modify (ip address or id)

Expand
Table 35.20. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--port <port>

Associate the floating ip with port (name or id)

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

Fixed IP of the port (required only if port has multiple IPs)

--qos-policy <qos-policy>

Attach QoS policy to the floating IP (name or ID)

--no-qos-policy

Remove the qos policy attached to the floating ip

--tag <tag>

Tag to be added to the floating ip (repeat option to set multiple tags)

--no-tag

Clear tags associated with the floating ip. specify both --tag and --no-tag to overwrite current tags

35.6. floating ip show

Usage:

openstack floating ip show [-h] [-f {json,shell,table,value,yaml}]

                                [-c COLUMN] [--max-width <integer>]
                                [--fit-width] [--print-empty] [--noindent]
                                [--prefix PREFIX]
                                <floating-ip>
Copy to Clipboard Toggle word wrap

Display floating IP details

Expand
Table 35.21. Positional Arguments
ValueSummary

<floating-ip>

Floating ip to display (ip address or id)

Expand
Table 35.22. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

Expand
Table 35.23. Output Formatters
ValueSummary

-f {json,shell,table,value,yaml}, --format {json,shell,table,value,yaml}

the output format, defaults to table

-c COLUMN, --column COLUMN

specify the column(s) to include, can be repeated

Expand
Table 35.24. Table Formatter
ValueSummary

--max-width <integer>

Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence.

--fit-width

Fit the table to the display width. implied if --max- width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable

--print-empty

Print empty table if there is no data to show.

Expand
Table 35.25. JSON Formatter
ValueSummary

--noindent

Whether to disable indenting the json

Expand
Table 35.26. shell formatter
ValueSummary

--prefix PREFIX

Add a prefix to all variable names

35.7. floating ip unset

Usage:

openstack floating ip unset [-h] [--port] [--qos-policy]

                                 [--tag <tag> | --all-tag]
                                 <floating-ip>
Copy to Clipboard Toggle word wrap

Unset floating IP Properties

Expand
Table 35.27. Positional Arguments
ValueSummary

<floating-ip>

Floating ip to disassociate (ip address or id)

Expand
Table 35.28. Optional Arguments
ValueSummary

-h, --help

Show this help message and exit

--port

Disassociate any port associated with the floating ip

--qos-policy

Remove the qos policy attached to the floating ip

--tag <tag>

Tag to be removed from the floating ip (repeat option to remove multiple tags)

--all-tag

Clear all tags associated with the floating ip

Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat