Updated on 2026-01-06 GMT+08:00

Configuring Alarms

Function

This API is used to set alarm configurations.

Calling Method

For details, see Calling APIs.

URI

POST /v1/cnad/alarm-config

Request Parameters

Table 1 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

It can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.

Content-Type

Yes

String

Content-Type

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

topic_urn

Yes

String

SMN topic URN

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

topic_urn

String

SMN topic URN

Example Requests

Enable the alarm notification and specify the message notification topic named urn:smn:cn-north-7:2d2d90a56a3243bdb909f6a24a27be8d:cnad-test-intl.

POST https://{endpoint}/v1/cnad/alarm-config

{
  "topic_urn" : "urn:smn:cn-north-7:2d2d90a56a3243bdb909f6a24a27be8d:cnad-test-intl"
}

Example Responses

Status code: 200

OK

{
  "topic_urn" : "urn:smn:cn-north-7:4229e3e5b9014d978b208b971f2e0e0c:DDos_test"
}

Status Codes

Status Code

Description

200

OK

401

Unauthorized

403

Forbidden

404

Not Found

Error Codes

See Error Codes.