Load Balancers
List Load Balancers
Gets all existing Load Balancers that you have available.
get/load_balancers
Request
- Base URL: https://api.hetzner.cloud/v1
- URL: https://api.hetzner.cloud/v1/load_balancers
- Auth: HTTP bearer
Query parameters
sortstring[]
Sort resources by field and direction. May be used multiple times.
For more information, see "Sorting".
namestring
Filter resources by their name.
The response will only contain the resources matching exactly the specified name.
label_selectorstring
Filter resources by labels.
The response will only contain resources matching the label selector. For more information, see "Label Selector".
pageinteger
Example:1
Page number to return. For more information, see "Pagination".
per_pageinteger
Example:25
Maximum number of entries returned per page. For more information, see "Pagination".
Response
Request succeeded.
Example response
{
"load_balancers": [
{
"id": 42,
"name": "my-resource",
"public_net": {
"ipv4": {
"id": 42,
"ip": "1.2.3.4",
"dns_ptr": "lb1.example.com"
},
"ipv6": {
"id": 42,
"ip": "2001:db8::1",
"dns_ptr": "lb1.example.com"
}
},
"private_net": [
{
"network": 4711,
"ip": "10.0.0.2"
}
],
"location": {
"id": 42,
"name": "fsn1",
"description": "Falkenstein DC Park 1",
"country": "DE",
"city": "Falkenstein",
"latitude": 50.47612,
"longitude": 12.370071,
"network_zone": "eu-central"
},
"load_balancer_type": {
"id": 1,
"name": "lb11",
"description": "LB11",
"max_connections": 20000,
"max_services": 5,
"max_targets": 25,
"max_assigned_certificates": 10,
"deprecated": "2016-01-30T23:50:00Z",
"deprecation": {
"unavailable_after": "2023-09-01T00:00:00Z",
"announced": "2023-06-01T00:00:00Z"
},
"prices": [
{
"location": "fsn1",
"price_hourly": {
"net": "1.0000",
"gross": "1.1900"
},
"price_monthly": {
"net": "1.0000",
"gross": "1.1900"
},
"included_traffic": 654321,
"price_per_tb_traffic": {
"net": "1.0000",
"gross": "1.1900"
}
}
]
},
"labels": {
"environment": "prod",
"example.com/my": "label",
"just-a-key": ""
},
"created": "2016-01-30T23:55:00Z",
"services": [
{
"protocol": "tcp",
"listen_port": 443,
"destination_port": 80,
"health_check": {
"protocol": "http",
"port": 4711,
"interval": 15,
"timeout": 10,
"retries": 3,
"http": {
"domain": "example.com",
"path": "/",
"response": "{\"status\": \"ok\"}",
"status_codes": [
"2??",
"3??"
]
}
}
}
],
"targets": [
{
"type": "server",
"server": {
"id": 80,
"ip": "2001:db8::1"
},
"health_status": [
{
"listen_port": 443,
"status": "healthy",
"detail": "unexpected_http_status",
"http_status_code": 503
}
]
}
],
"included_traffic": 10000
}
],
"meta": {
"pagination": {
"page": 3,
"per_page": 25,
"previous_page": 2,
"next_page": 4,
"last_page": 4,
"total_entries": 100
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.