Hetzner Cloud icon

Hetzner Cloud

Manage servers, volumes, networks and more in Hetzner Cloud

Floating IP → Assign

AI-generated

Summary

Assigns a Hetzner Cloud Floating IP to a server by POSTing to /v1/floating_ips/{id}/actions/assign, and returns the resulting action object.

Inputs

  • Floating IP (required) — The Floating IP to assign, chosen from a searchable list (first 50 Floating IPs, labelled by name, IP or ID) or entered by numeric ID. Used in the URL path.
  • Server (required) — The target server, chosen from a searchable list (first 50 servers, filtered by name) or entered by ID. Sent as the numeric server field in the request body.
  • Request Options — Node-level settings: batching (items per batch, interval in ms), ignore SSL issues, HTTP proxy, and request timeout in ms (default 10000).

Output shape

One item per input item, containing the Hetzner action object (the action root property of the API response) that tracks the assignment.

The action is returned as soon as the API accepts the request, so its status may still be running. The operation does not wait for completion. Use the Action resource's Get operation to poll it. Authentication uses the hetznerCloudApi credential.

Examples

Example 1: Move a Floating IP to a standby server during failover.

Resource: Floating IP; Operation: Assign; Floating IP: pick from list; Server: By ID with an expression such as {{ $json.serverId }}.

Example 2: Attach a Floating IP to a newly created server.

Follow a Server > Create node. Set Floating IP by ID and Server by ID using the new server's id from the previous node.

Links

Discussion