3.24.2. Allocate floating IP

 
MethodURIDescription
POST/v2/{tenant_id}/os-floating-ips

Allocates a new floating IP address to a tenant or account.

This table shows the possible response codes for this operation:

Response CodeNameDescription
200
400

If there are no floating IPs available, the extension returns an error code 400 with a message indicating that no more floating IPs are available.

 3.24.2.1. Request

This table shows the URI parameters for the allocate floating ip request:

NameTypeDescription

{tenant_id}

​String

The unique identifier of the tenant or account.

 

Example 3.193. Allocate floating IP: JSON request

{
    "pool": "nova"
}

 

Example 3.194. Allocate floating IP: XML request

<?xml version='1.0' encoding='UTF-8'?>
<pool>nova</pool>

This operation does not require a request body.

 3.24.2.2. Response

 

Example 3.195. Allocate floating IP: JSON response

{
    "floating_ip": {
        "fixed_ip": null,
        "id": 1,
        "instance_id": null,
        "ip": "10.10.10.1",
        "pool": "nova"
    }
}

 

Example 3.196. Allocate floating IP: XML response

<?xml version='1.0' encoding='UTF-8'?>
<floating_ip instance_id="None" ip="10.10.10.1" fixed_ip="None" id="1" pool="nova"/>

This operation does not return a response body.

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...