Deletes an alert template.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteMetricRuleTemplate |
The operation that you want to perform. Set the value to DeleteMetricRuleTemplate. |
TemplateId | String | Yes | 123**** |
The ID of the alert template. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Code | Integer | 200 |
The HTTP status code. Note The status code 200 indicates that the call was successful.
|
Message | String | success |
The returned message. |
RequestId | String | 7B63F8CF-D48D-4608-A402-04FB5B2B4B6A |
The ID of the request. |
Resource | Struct | N/A |
The information about the alert template. |
TemplateId | String | 123**** |
The ID of the template. |
Success | Boolean | true |
Indicates whether the call was successful. The value true indicates a success. The value false indicates a failure. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=DeleteMetricRuleTemplate
&TemplateId=123****
&<Common request parameters>
Sample success responses
XML
format
<DeleteMetricRuleTemplateResponse>
<Resource>
<TemplateId>123****</TemplateId>
</Resource>
<RequestId>7B63F8CF-D48D-4608-A402-04FB5B2B4B6A</RequestId>
<Success>true</Success>
<Code>200</Code>
</DeleteMetricRuleTemplateResponse>
JSON
format
{
"Resource": {
"TemplateId": "123****"
},
"RequestId": "7B63F8CF-D48D-4608-A402-04FB5B2B4B6A",
"Success": true,
"Code": 200
}
Error codes
For a list of error codes, visit the API Error Center.