Deleting a Threshold Rule

Function

This API is used to delete a threshold rule.

URI

DELETE /v2/{project_id}/ams/alarms/{alarm_id}

Request

Request parameters

Table 1 describes the request parameters.

Table 1 Request parameters

Parameter

Mandatory

Type

Value Range

Description

project_id

Yes

String

-

Project ID obtained from IAM. Generally, a project ID contains 32 characters.

alarm_id

Yes

String

Non-null value that can be converted to a value of the long type.

Threshold rule ID.

Request headers

Table 2 describes the request headers.

Table 2 Request headers

Name

Mandatory

Description

X-Auth-Token

Yes

User token obtained from IAM.

Content-Type

Yes

Content type, which is application/json.

Example request

/v2/{project_id}/ams/alarms/al1441967036681YkazZ0deN

Response

Response parameters

Table 3 describes the response parameters.

Table 3 Response parameters

Parameter

Type

Description

errorCode

String

Response code.

errorMessage

String

Response message.

Example response

{  
 "errorCode": "AOM.0200", 
 "errorMessage": "Delete Threshold [xxx] successfully ." 
}

Status Code

Error Code

Table 6 Error codes

Error Code

Message

Solution

AOM.0115

Invalid request parameter.

Check whether the parameter meets requirements.

AOM.0501

The Cassandra session is null.

Contact technical support.

AOM.0502

The Cassandra execution is abnormal.

Contact technical support.