Load Balancers /
List load balancers
Gets a list of load balancers belonging to the team
Required permission
Account > LoadBalancers > General > Read
Query parameters
per_page
integerThe number of results to display per request. Maximum of 100 results per page.page
integerThe page number to access.cursor
stringThe cursor returned from the previous page of results, used to request the next page.
Response body
- {object}Response object.
data
{object} requiredResult data.loadBalancers
[array] requiredAn array of load balancers.- {object}A load balancer object.
name
string requiredThe name of the load balancer.min length3max length39pattern^[a-zA-Z]((-|\s)?[a-zA-Z0-9]+((-|\s)[a-zA-Z0-9]+)*)?$description
stringThe description of the load balancer.max length200pattern^[a-zA-Z0-9.,?\s\\/'"()[\];`%^&*\-_:!]+$spec
{object} requiredLoad balancer specificationid
string requiredID of the load balancerpattern^[A-Za-z0-9-]+$createdAt
string requiredThe time the load balancer was created.updatedAt
string requiredThe time the load balancer was last updated.pagination
{object} requiredData about the endpoint pagination.hasNextPage
boolean requiredIs there another page of results available?cursor
stringThe cursor to access the next page of results.count
number requiredThe number of results returned by this request.
API
CLI
JS Client
GET /v1/load-balancers
Example response
200 OK
A list of load balancers belonging to the team.
JSON
{
"data": {
"loadBalancers": [
{
"name": "my-load-balancer",
"description": "This is a new load balancer.",
"spec": {
"type": "tcp",
"target": {
"type": "region",
"targetId": "europe-west"
},
"ports": [
{
"id": "port-80",
"backends": [
{
"id": "my-project/my-service",
"type": "service",
"port": 3000,
"weight": 1
}
]
}
]
},
"id": "my-load-balancer",
"createdAt": "2021-01-20T11:19:53.175Z",
"updatedAt": "2021-01-20T11:19:53.175Z"
}
]
},
"pagination": {
"hasNextPage": false,
"count": 1
}
}