curl --request GET \ --url 'https://api.e2enetworks.com/myaccount/api/v1/appliances/load-balancers/{lb_id}/?project_id=<PROJECT_ID>&apikey=<API_KEY>&location=<LOCATION>' \ --header 'Authorization: Bearer <API_TOKEN>'import requests
response = requests.get( "https://api.e2enetworks.com/myaccount/api/v1/appliances/load-balancers/{lb_id}/", params={"project_id": "<PROJECT_ID>", "apikey": "<API_KEY>", "location": "<LOCATION>"}, headers={"Authorization": "Bearer <API_TOKEN>"},)print(response.json())const url = new URL("https://api.e2enetworks.com/myaccount/api/v1/appliances/load-balancers/{lb_id}/");url.search = new URLSearchParams({ project_id: "<PROJECT_ID>", apikey: "<API_KEY>", location: "<LOCATION>" });
const response = await fetch(url, { method: "GET", headers: { "Authorization": "Bearer <API_TOKEN>" },});console.log(await response.json());Returns live HAProxy runtime statistics for a single load balancer, grouped into frontends, backends, and servers. The fields mirror the HAProxy stats CSV (sessions, bytes in/out, queue depth, response code counts, health-check status, and so on) and are useful for building custom dashboards. For historical time-series data use Historical Data instead.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The id of the load balancer, as returned by the List Load Balancers endpoint.
Example
12345Query Parameters
Section titled “Query Parameters”Identifier of the project to scope the request to. Required integer project ID.
Example
<PROJECT_ID>API key used to authenticate the request
Example
<API_KEY>Region of the load balancer.
Example
<LOCATION>Responses
Section titled “Responses”Successful response
Live HAProxy statistics. frontends, backends, and servers are arrays whose objects mirror the HAProxy stats CSV columns (only the commonly used columns are shown here).
object
object
object
Proxy (frontend) name.
Current sessions.
Max sessions seen.
Total sessions.
Bytes in.
Bytes out.
Backend-level stats (same column set as frontends).
object
Per-server stats within each backend.
object
object
Example
{ "code": 200, "data": { "frontends": [ { "pxname": "http-in", "svname": "FRONTEND", "scur": 1, "smax": 2, "stot": 2, "bin": 186, "bout": 217, "status": "OPEN", "hrsp_2xx": 0, "hrsp_4xx": 0, "hrsp_5xx": 1 } ], "backends": [ { "pxname": "backend-group-1", "svname": "BACKEND", "status": "UP" } ], "servers": [ { "pxname": "backend-group-1", "svname": "C3-8GB-853", "status": "UP" } ] }, "message": "Success"}