curl --request POST \ --url 'https://api.e2enetworks.com/myaccount/api/v1/gpu/gateway/{gateway_id}/alerts/?project_id=<PROJECT_ID>&location=<LOCATION>&apikey=<API_KEY>' \ --header 'Authorization: Bearer <API_TOKEN>' \ --header 'Content-Type: application/json' \ --data '{ "alert_id": 17}'import requests
response = requests.post( "https://api.e2enetworks.com/myaccount/api/v1/gpu/gateway/{gateway_id}/alerts/", params={"project_id": "<PROJECT_ID>", "location": "<LOCATION>", "apikey": "<API_KEY>"}, headers={"Authorization": "Bearer <API_TOKEN>"}, json={ "alert_id": 17, },)print(response.json())const url = new URL("https://api.e2enetworks.com/myaccount/api/v1/gpu/gateway/{gateway_id}/alerts/");url.search = new URLSearchParams({ project_id: "<PROJECT_ID>", location: "<LOCATION>", apikey: "<API_KEY>" });
const response = await fetch(url, { method: "POST", headers: { "Authorization": "Bearer <API_TOKEN>", "Content-Type": "application/json" }, body: JSON.stringify({ "alert_id": 17 }),});console.log(await response.json());Attaches an alert you already made for Load Balancers, so the Load Balancer is watched against it and notifications go to the alert’s channels. The Load Balancer must be Running. An alert can be attached to a Load Balancer once. Needs the Create permission for Load Balancers.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Load Balancer ID
Query Parameters
Section titled “Query Parameters”Project ID
Active IAM ID (To access contact person account) Find your Active IAM ID here
Location
Request Bodyrequired
Section titled “Request Bodyrequired”object
ID of an alert of this project and region whose resource type is Load Balancer.
Example
17Responses
Section titled “Responses”The alert was attached
object
object
ID of the attachment. Use it in the paths that take attachment_id.
ID of the Load Balancer.
Name of the Load Balancer.
object
The kind of resource the alert is for.
The measure the alert watches.
The unit of the measure.
How the measure is compared with the threshold.
The value the measure is compared with.
How long the condition must hold before the alert fires.
Who created it.
object
ID of the alert rule that watches the Load Balancer.
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": {}}alert_id is missing, or is not an alert of this project and region made for Load Balancers, or is already attached to this Load Balancer. errors is an object keyed by field. The same 400 is returned, with the project’s own text, when project_id is missing or not a number.
object
object
Example
{ "code": 400, "message": "Bad Request", "data": {}}The Load Balancer does not exist in this project and region, is not Running, the alert’s measure is not one a Load Balancer of this type offers, or the alert could not be attached. errors is the reason.
object
object
Example
{ "code": 412, "message": "Precondition Failed", "data": {}}