v32

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-151,1412,2144.5 MB
Floating IPs

Update floating IP

This endpoint updates the association and tags of an existing Floating IP. The behavior depends on the current association state and the provided fields:

Parameters:

port_id: The unique identifier of the network interface (port) to which the Floating IP should be assigned. This ID can be retrieved from the "Get instance" or "List network interfaces" endpoints.

fixed_ip_address: The private IP address assigned to the network interface. This must be one of the IP addresses currently assigned to the specified port. You can retrieve available fixed IP addresses from the "Get instance" or "List network interfaces" endpoints.

When the Floating IP has no port associated (port_id is null):

  • Patch with both port_id and fixed_ip_address: Assign the Floating IP to the specified port and the provided fixed_ip_address, if that fixed_ip_address exists on the port and is not yet used by another Floating IP.
  • Patch with port_id only (fixed_ip_address omitted): Assign the Floating IP to the specified port using the first available IPv4 fixed IP of that port.

When the Floating IP is already associated with a port:

  • Patch with both port_id and fixed_ip_address: Re-assign the Floating IP to the specified port and address if all validations pass.
  • Patch with port_id only (fixed_ip_address omitted): Re-assign the Floating IP to the specified port using the first available IPv4 fixed IP of that port.
  • Patch with port_id = null: Unassign the Floating IP from its current port.

Tags:

  • You can update tags alongside association changes. Tags are provided as a list of key-value pairs.

Idempotency and task creation:

  • No worker task is created if the requested state is already actual, i.e., the requested port_id equals the current port_id and/or the requested fixed_ip_address equals the current fixed_ip_address, and the tags already match the current tags. In such cases, the endpoint returns an empty tasks list.
patch/cloud/v2/floatingips/{project_id}/{region_id}/{floating_ip_id}

Path parameters

project_idinteger required

Project ID

Example:1

Project ID

region_idinteger required

Region ID

Example:1

Region ID

floating_ip_idstring uuid4 required

Floating IP ID

Example:c64e5db1-5f1f-43ec-a8d9-5090df85b82d

Floating IP ID

Request body

fixed_ip_addressstring ipv4 nullable

Fixed IP address

port_idstring uuid4 nullable

Port ID

tagsUpdateTagsSerializer

Example request

{
  "fixed_ip_address": "192.168.10.15",
  "port_id": "ee2402d0-f0cd-4503-9b75-69be1d11c5f1"
}

Response

OK

tasksstring[] required

List of task IDs representing asynchronous operations. Use these IDs to monitor operation progress:

  • GET /v1/tasks/{task_id} - Check individual task status and details Poll task status until completion (FINISHED/ERROR) before proceeding with dependent operations.
idstring required

Example response

{
  "tasks": [
    "d478ae29-dedc-4869-82f0-96104425f565"
  ]
}