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):
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.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:
port_id and fixed_ip_address:
Re-assign the Floating IP to the specified port and address if all validations pass.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.port_id = null:
Unassign the Floating IP from its current port.Tags:
Idempotency and task creation:
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.API key for authentication. Make sure to include the word apikey, followed by a single space and then your token.
Example: apikey 1234$abcdef
Project ID
1
Region ID
1
Floating IP ID
"c64e5db1-5f1f-43ec-a8d9-5090df85b82d"
Fixed IP address
"192.168.10.15"
Port ID
"ee2402d0-f0cd-4503-9b75-69be1d11c5f1"
Update key-value tags using JSON Merge Patch semantics (RFC 7386). Provide key-value pairs to add or update tags. Set tag values to null to remove tags. Unspecified tags remain unchanged. Read-only tags are always preserved and cannot be modified.
Examples:
Add/update tags: {'tags': {'environment': 'production', 'team': 'backend'}} adds new tags or updates existing ones.
Delete tags: {'tags': {'old_tag': null}} removes specific tags.
Remove all tags: {'tags': null} removes all user-managed tags (read-only tags are preserved).
Partial update: {'tags': {'environment': 'staging'}} only updates specified tags.
Mixed operations: {'tags': {'environment': 'production', 'cost_center': 'engineering', 'deprecated_tag': null}} adds/updates 'environment' and 'cost_center' while removing 'deprecated_tag', preserving other existing tags.
Replace all: first delete existing tags with null values, then add new ones in the same request.
{
"my-tag": "my-tag-value",
"my-tag-to-remove": null
}OK
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.["d478ae29-dedc-4869-82f0-96104425f565"]