curl --request PUT \ --url 'https://api.e2enetworks.com/myaccount/api/v1/monitoring/single-service/stop_resume_alert/{alert_trigger_id}/?project_id=<PROJECT_ID>&apikey=<API_KEY>&location=<LOCATION>' \ --header 'Authorization: Bearer <API_TOKEN>' \ --header 'Content-Type: application/json' \ --data '{ "action_type": "pause_alert"}'import requests
response = requests.put( "https://api.e2enetworks.com/myaccount/api/v1/monitoring/single-service/stop_resume_alert/{alert_trigger_id}/", params={"project_id": "<PROJECT_ID>", "apikey": "<API_KEY>", "location": "<LOCATION>"}, headers={"Authorization": "Bearer <API_TOKEN>"}, json={ "action_type": "pause_alert", },)print(response.json())const url = new URL("https://api.e2enetworks.com/myaccount/api/v1/monitoring/single-service/stop_resume_alert/{alert_trigger_id}/");url.search = new URLSearchParams({ project_id: "<PROJECT_ID>", apikey: "<API_KEY>", location: "<LOCATION>" });
const response = await fetch(url, { method: "PUT", headers: { "Authorization": "Bearer <API_TOKEN>", "Content-Type": "application/json" }, body: JSON.stringify({ "action_type": "pause_alert" }),});console.log(await response.json());curl --request PUT \ --url 'https://api.e2enetworks.com/myaccount/api/v1/monitoring/single-service/stop_resume_alert/{alert_trigger_id}/?project_id=<PROJECT_ID>&apikey=<API_KEY>&location=<LOCATION>' \ --header 'Authorization: Bearer <API_TOKEN>' \ --header 'Content-Type: application/json' \ --data '{ "action_type": "pause_alert"}'import requests
response = requests.put( "https://api.e2enetworks.com/myaccount/api/v1/monitoring/single-service/stop_resume_alert/{alert_trigger_id}/", params={"project_id": "<PROJECT_ID>", "apikey": "<API_KEY>", "location": "<LOCATION>"}, headers={"Authorization": "Bearer <API_TOKEN>"}, json={ "action_type": "pause_alert", },)print(response.json())const url = new URL("https://api.e2enetworks.com/myaccount/api/v1/monitoring/single-service/stop_resume_alert/{alert_trigger_id}/");url.search = new URLSearchParams({ project_id: "<PROJECT_ID>", apikey: "<API_KEY>", location: "<LOCATION>" });
const response = await fetch(url, { method: "PUT", headers: { "Authorization": "Bearer <API_TOKEN>", "Content-Type": "application/json" }, body: JSON.stringify({ "action_type": "pause_alert" }),});console.log(await response.json());Pauses or resumes an existing alert trigger without deleting it. The action_type field in the body selects the operation (pause_alert or resume_alert). The alert trigger ID is the id returned by Create Alert.
Pauses or resumes an existing alert. Send action_type: "pause_alert" to stop the alert from firing, or action_type: "resume_alert" to re-enable it. The path takes the alert’s alert_trigger_id.
Pause or Resume Alert and Pause or Resume a Cluster Alert share this request; the body you send decides which one runs.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The alert_trigger_id from an entry in the trigger array returned by the List Alert Triggers endpoint.
Example
34567Query 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 scope for the alert.
Example
<LOCATION>Request Body
Section titled “Request Body”Responses
Section titled “Responses”Successful response
object
object
Example
{ "code": 200, "data": "", "message": "Alert paused successfully."}