Update Floating IP

Verb URI Description
PUT /floatingips/floatingip_id Updates a floating IP and its association with an internal port, if the relevant information are specified in the request body.

Normal Response Code: 200 OK

Error Response Code: 400 Bad Request, 401 Unauthorized, 404 Not Found, 409 Conflict

This operation requires a request body.

This operation returns a response body.

 This operation updates an association between a floating IP and an OpenStack Networking port. The association process is exactly the same as the one discussed for the create floating IP operation.

To disassociate a floating IP from a port, set the port_id request attribute to null or omit it from the request body.

 

Example 4.32. Update Floating IP (associate): JSON Request

{
   "floatingip":{
      "port_id":"fc861431-0e6c-4842-a0ed-e2363f9bc3a8"
   }
}

 

Example 4.33. Update Floating IP (associate): JSON Response

{
    "floatingip":
    {
        "router_id": "d23abc8d-2991-4a55-ba98-2aaea84cc72f",
        "tenant_id": "4969c491a3c74ee4af974e6d800c62de",
        "floating_network_id": "376da547-b977-4cfe-9cba-275c80debf57",
        "fixed_ip_address": "10.0.0.4",
        "floating_ip_address": "172.24.4.228",
        "port_id": "fc861431-0e6c-4842-a0ed-e2363f9bc3a8",
        "id": "2f245a7b-796b-4f26-9cf9-9e82d248fda7"
     }
 }

 

Example 4.34. Update Floating IP (disassociate): JSON Request

{
   "floatingip":{
      "port_id":null
   }
}

 

Example 4.35. Update Floating IP (disassociate): JSON Response

{
    "floatingip":
    {
        "router_id": "d23abc8d-2991-4a55-ba98-2aaea84cc72f",
        "tenant_id": "4969c491a3c74ee4af974e6d800c62de",
        "floating_network_id": "376da547-b977-4cfe-9cba-275c80debf57",
        "fixed_ip_address": null,
        "floating_ip_address": "172.24.4.228",
        "port_id": null,
        "id": "2f245a7b-796b-4f26-9cf9-9e82d248fda7"
     }
 }

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


loading table of contents...