Load Balancer Actions
Attach a Load Balancer to a Network
Attach a Load Balancer to a Network.
Operation specific errors
| Status | Code | Description |
|---|---|---|
| 422 | load_balancer_already_attached | The Load Balancer is already attached to a network |
| 422 | ip_not_available | The provided Network IP is not available |
| 422 | no_subnet_available | No Subnet or IP is available for the Load Balancer within the network |
post/load_balancers/{id}/actions/attach_to_network
Request
- Base URL: https://api.hetzner.cloud/v1
- URL: https://api.hetzner.cloud/v1/load_balancers/{id}/actions/attach_to_network
- Auth: HTTP bearer
Path parameters
idinteger required
ID of the Load Balancer.
Example:42
ID of the Load Balancer.
Request body
Example request
{
"network": 123,
"ip": "10.0.1.1",
"ip_range": "10.0.1.0/24"
}Response
Request succeeded.
Example response
{
"action": {
"id": 42,
"command": "start_resource",
"started": "2016-01-30T23:55:00Z",
"finished": "2016-01-30T23:55:00Z",
"progress": 100,
"resources": [
{
"id": 42,
"type": "server"
}
],
"error": {
"code": "action_failed",
"message": "Action failed"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.