• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Neutron
  5. Floating IP
  6. List floating IPs

List floating IPs

Function Description

This interface is used to query floating IP addresses.

Interface Format

Method

URI

Description

GET

/v2.0/floatingips?id={fip_id}&router_id={router_id}&floating_nework_id={net_id }&floating_ip_address={floating_ip }&port_id={port_id }&fixed_ip_address={fixed_ip}&tenant_id={tenant_id}

Queries all floating IP addresses on which the tenants sending requests to the system have permissions to perform operations.

Restrictions

N/A

Request Parameter

None

Response Parameter

Parameter

Type

Mandatory

Description

floatingips

List(floatingip)

Yes

Specifies the floating IP address list. For details, see Table 1.

Request Example

GET  /v2.0/floatingips

Response Example

{
    "floatingips": [
        {
            "router_id": "21978e24-b96d-43be-8452-5dd731acde96", 
"status": "DOWN",
            "tenant_id": "6fbe9263116a4b68818cf1edce16bc4f",
"floating_network_id": "0a2228f2-7f8a-45f1-8e09-9039e1d09975",
            "fixed_ip_address": "10.1.1.2",
            "floating_ip_address": "192.150.73.5",
            "port_id": "3cb820b8-82ba-446c-9845-f1ef843d744b",
            "id": "2dedb5e7-cb70-4e78-b50f-d88c8321d161"
        }
    ]
}

Error Code

See section Return Code Processing.