POST /load_balancers/{id}/actions/attach_to_network
Attach a Load Balancer to a Network.
Call specific error codes
Code | Description |
---|---|
load_balancer_already_attached | The Load Balancer is already attached to a network |
ip_not_available | The provided Network IP is not available |
no_subnet_available | No Subnet or IP is available for the Load Balancer within the network |
Servers
- https://api.hetzner.cloud/v1
Path parameters
Name | Type | Required | Description |
---|---|---|---|
id |
Integer | Yes |
ID of the Load Balancer. |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
network |
Integer | Yes |
ID of an existing network to attach the Load Balancer to |
ip |
String | No |
IP to request to be assigned to this Load Balancer; if you do not provide this then you will be auto assigned an IP address |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.