Modifies a quota alert rule.
Operation description
In this example, the operation is called to modify the information about a quota alert whose ID is a2efa7fc-832f-47bb-8054-39e28012****
and whose name is rules
. The alert threshold is changed from 150
to 160
.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
AlarmId | string | Yes | The ID of the quota alert. | a2efa7fc-832f-47bb-8054-39e28012**** |
AlarmName | string | Yes | The name of the quota alert. | rules |
ThresholdType | string | No | The type of the quota alert. Valid values:
| usable |
Threshold | float | No | The numeric value of the alert threshold. Valid values:
Note
You must set one of the Threshold and ThresholdPercent parameters.
| 160 |
ThresholdPercent | float | No | The percentage of the alert threshold. Valid values:
Note
You must set one of the Threshold and ThresholdPercent parameters.
| 51 |
WebHook | string | No | The webhook URL. Quota Center sends alert notifications to the specified URL by using HTTP POST requests. | https://alert.aliyun.com/callback |
For more information about common request parameters, see API Reference.
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "A95C65B3-7CF4-469E-B1D5-1CA0628A6411"
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | RAM.PERMISSION.DENIED | You are not authorized to do this action or the API input parameter is invalid. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||
---|---|---|---|---|---|---|---|---|
2023-10-12 | The Error code has changed | see changesets | ||||||
| ||||||||
2023-09-22 | API Description Update. The Error code has changed | see changesets | ||||||
| ||||||||
2023-09-04 | The Error code has changed | see changesets | ||||||
|