Skip to content

Get Load Balancer Alert

GET
/gateway/{gateway_id}/alerts/{attachment_id}/
curl --request GET \
--url 'https://api.e2enetworks.com/myaccount/api/v1/gpu/gateway/{gateway_id}/alerts/{attachment_id}/?project_id=<PROJECT_ID>&location=<LOCATION>&apikey=<API_KEY>' \
--header 'Authorization: Bearer <API_TOKEN>'

Returns one alert attached to the Load Balancer. Needs the Read permission for Load Balancers.

gateway_id
required
integer

Load Balancer ID

attachment_id
required
integer

Alert attachment ID

project_id
required
integer

Project ID

active_iam
integer

Active IAM ID (To access contact person account) Find your Active IAM ID here

location
required
string
Allowed values: Delhi Chennai

Location

The attached alert

Media typeapplication/json
object
code
integer
message
string
data
object
id

ID of the attachment. Use it in the paths that take attachment_id.

integer
gateway

ID of the Load Balancer.

integer
gateway_name

Name of the Load Balancer.

string
alert
object
id
integer
name
string
location
string
resource_type

The kind of resource the alert is for.

string
metric_type

The measure the alert watches.

string
metric_type_unit

The unit of the measure.

string
nullable
operator

How the measure is compared with the threshold.

string
threshold_value

The value the measure is compared with.

number
severity
string
evaluate_for

How long the condition must hold before the alert fires.

string
nullable
created_by

Who created it.

object
id
integer
name
string
email
string
username
string
created_at
string
updated_at
string
alert_name
string
grafana_rule_uid

ID of the alert rule that watches the Load Balancer.

string
nullable
created_at
string
updated_at
string
errors
object

Example

{
"code": 200,
"message": "Success",
"data": {
"id": 63,
"gateway": 42,
"gateway_name": "example-lb",
"alert": {
"id": 17,
"name": "High error rate",
"location": "Delhi",
"resource_type": "Load Balancer",
"metric_type": "example",
"metric_type_unit": "example",
"operator": "example",
"severity": "example",
"created_by": {
"id": 101,
"name": "A User",
"email": "user@example.com",
"username": "auser"
},
"created_at": "2026-10-21T11:17:29Z",
"updated_at": "2026-10-21T11:17:29Z"
},
"alert_name": "High error rate",
"grafana_rule_uid": "a1b2c3d4e5",
"created_at": "2026-10-21T11:17:29Z",
"updated_at": "2026-10-21T11:17:29Z"
},
"errors": {}
}

project_id is missing or not a number. errors holds the project’s own text.

Media typeapplication/json
object
code
integer
message
string
data
object
errors
string

Example

{
"code": 400,
"message": "Bad Request",
"data": {}
}

No attachment with that ID on this Load Balancer. errors says the alert was not found.

Media typeapplication/json
object
code
integer
message
string
data
object
errors
string

Example

{
"code": 412,
"message": "Precondition Failed",
"data": {}
}