All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term

Documentation

DeleteAlarmPolicy

Last updated:2026-03-18 14:12:49

Here is the full English translation, formatted consistently with the previous pages:


DeleteAlarmPolicy

Call the DeleteAlarmPolicy API to delete one or more alarm policies configured under the specified account.


Description

Field

Value

API Name

DeleteAlarmPolicy

Request Method

POST

Endpoint

monitor.api.ksyun.com

VPC Internal Endpoint

monitor.internal.api.ksyun.com

Version

2022-01-01


Request Parameters

All requests must include the Common Request Parameters. The table below lists only the API-specific parameters.

Parameter

Required

Type

Description

Action

Yes

String

Fixed value: DeleteAlarmPolicy.

Version

Yes

String

Fixed value: 2022-01-01.

PolicyIds

Yes

[]Integer

List of alarm policy IDs to delete. To retrieve policy IDs, see Query Alarm Policies.


Response Parameters

Field

Type

Description

requestId

String

Unique request ID. Can be used for troubleshooting.


Request Examples

Example: Delete One or More Alarm Policies

Request

Replace ${region} with the appropriate region code. See: Region Reference. Replace ${CommonParams} with the appropriate common parameters. See: Common Parameters.

curl -X POST 'https://monitor.${region}.api.ksyun.com/?Action=DeleteAlarmPolicy&Version=2022-01-01' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'host: monitor.api.ksyun.com' \
-H 'cache-control: no-cache' \
-H ${CommonParams} \
-d '{
  "PolicyIds": [26562, 26563]
}'

Successful Response

Both XML and JSON formats are supported. A successful deletion returns only the request ID with no additional data payload.

JSON Format

{
    "requestId": "xxxx"
}

XML Format

<RequestId>xxxxx</RequestId>

Error Codes

The table below lists only the error codes specific to this API's business logic. For all other error codes, refer to Common Error Codes.

On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen
Feedback