hcloud_load_balancer_add_target_action
Adds a server, label selector, or IP target to a Hetzner Cloud Load Balancer, optionally using the private IP and polling the action result.
Instructions
Add Target
Adds a target to a Load Balancer.
Operation specific errors
Status | Code | Description |
|
| The IP you are trying to add does not belong to the vswitch subnet of the attached network |
|
| The IP you are trying to add as a target is not owned by the Project owner |
|
| The specified IP is neither the Primary IPv4 address nor in the IPv6 subnet of the given Server |
|
| The Load Balancer's public network interface is disabled |
|
| The Load Balancer is not attached to a network |
|
| The given IP is private but attached network does not have a vswitch subnet |
|
| The server you are trying to add as a target is not attached to the same network as the Load Balancer |
|
| The server that you are trying to add as a public target does not have a public IPv4 address |
|
| The Load Balancer target you are trying to define is already defined |
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the Load Balancer. | |
| body | Yes | ||
| wait | No | Poll the resulting action until success/error or timeout. |