Deleting an Alarm Template
Function
This API is used to delete an alarm template.
Calling Method
For details, see Calling APIs.
URI
DELETE /v4/{project_id}/alarm-rules-template
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID, which can be obtained from the console or by calling an API. For details, see Obtaining a Project ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token obtained from IAM. For details, see Obtaining a Token. |
Content-Type |
Yes |
String |
Message body type or format. Content type, which is application/json. |
Enterprise-Project-Id |
No |
String |
Enterprise project ID. For details, see Obtaining an Enterprise Project ID.
|
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
alarm_rule_templates |
Yes |
Array of strings |
Alarm template ID list. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
resources |
Array of DeleteAlarmRuleTemplateItemResult objects |
Alarm template status list. |
Parameter |
Type |
Description |
---|---|---|
alarm_rule_template_name |
String |
Alarm template ID. |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
error_type |
String |
Error type. |
trace_id |
String |
Request ID. |
Example Requests
Delete an alarm template.
https://{Endpoint}/v4/{project_id}/alarm-rules-template { "alarm_rule_templates" : [ "12427*****340773893" ] }
Example Responses
Status code: 200
OK: The request is successful.
{ "error_code" : "200", "error_message" : "success", "resources" : [ { "alarm_rule_template_name" : "12427*****340773893" } ] }
Status code: 400
Bad Request: Invalid request. The client should not repeat this request without modification.
{ "error_code" : "AOM.02018002", "error_msg" : "no template to be deleted is found!", "trace_id" : "" }
Status Codes
Status Code |
Description |
---|---|
200 |
OK: The request is successful. |
400 |
Bad Request: Invalid request. The client should not repeat this request without modification. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot