hcloud_primary_ip_assign_action
Assigns a Primary IP to a powered-off Hetzner Cloud server, enabling the server to use the specified IPv4 or IPv6 address.
Instructions
Assign a Primary IP to a resource
Assign a Primary IP to a resource.
A Server can only have one Primary IP of type ipv4 and one of type ipv6 assigned. If you need more IPs use Floating IPs.
A Server must be powered off (status off) in order for this operation to succeed.
Operation specific errors
Status | Code | Description |
|
| The Server is running, but needs to be powered off |
|
| Primary IP is already assigned to a different Server |
|
| The Server already has an IPv4 address |
|
| The Server already has an IPv6 address |
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the Primary IP. | |
| body | Yes | ||
| wait | No | Poll the resulting action until success/error or timeout. |