3.24.5. Add floating IP

 
MethodURIDescription
POST/v2/{tenant_id}/servers/{server_id}/action

Adds a floating IP address to an instance.

Normal response codes: 202

 3.24.5.1. Request

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

NameTypeDescription

{tenant_id}

​String

The unique identifier of the tenant or account.

{server_id}

​U​U​ID

The UUID for the server of interest to you.

 

Example 3.199. Add floating IP: JSON request

{
  "addFloatingIp": {
    "address": "10.10.10.1"
  }
}

 

Example 3.200. Add floating IP: XML request

<?xml version="1.0" encoding="UTF-8"?>
<addFloatingIp>
    <address>10.10.10.1</address>
</addFloatingIp>

This operation does not require a request body.

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


loading table of contents...