3.25.2. Create floating IPs

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

Bulk-creates floating IPs.

Normal response codes: 200

 3.25.2.1. Request

This table shows the URI parameters for the create floating ips request:

NameTypeDescription

{tenant_id}

​String

The unique identifier of the tenant or account.

 

Example 3.205. Create floating IPs: JSON request

{
   "floating_ips_bulk_create":{
      "ip_range":"192.168.1.0/24",
      "pool":"nova",
      "interface":"eth0"
   }
}

 

Example 3.206. Create floating IPs: XML request

<?xml version='1.0' encoding='UTF-8'?>
<floating_ips_bulk_create>
<ip_range>192.168.1.0/24</ip_range>
<pool>nova</pool>
<interface>eth0</interface>
</floating_ips_bulk_create>

This operation does not require a request body.

 3.25.2.2. Response

 

Example 3.207. Create floating IPs: JSON response

{
    "floating_ips_bulk_create": {
        "interface": "eth0",
        "ip_range": "192.168.1.0/24",
        "pool": "nova"
    }
}

 

Example 3.208. Create floating IPs: XML response

<?xml version='1.0' encoding='UTF-8'?>
<floating_ips_bulk_create>
  <interface>eth0</interface>
  <ip_range>192.168.1.0/24</ip_range>
  <pool>nova</pool>
</floating_ips_bulk_create>

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...