All Products
Search
Document Center

Quota Center:UpdateQuotaAlarm

Last Updated:Oct 12, 2023

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

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

debugging

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
AlarmIdstringYes

The ID of the quota alert.

a2efa7fc-832f-47bb-8054-39e28012****
AlarmNamestringYes

The name of the quota alert.

rules
ThresholdTypestringNo

The type of the quota alert. Valid values:

  • used: The alert is created for the used quota.
  • usable: The alert is created for the available quota.
usable
ThresholdfloatNo

The numeric value of the alert threshold. Valid values:

  • If you set the ThresholdType parameter to used, you will receive an alert notification when the used quota is greater than or equal to the preset alert threshold. The alert threshold must be greater than the current used quota.
  • If you set the ThresholdType parameter to usable, you will receive an alert notification when the available quota is less than or equal to the preset alert threshold. The alert threshold must be less than the current available quota.
Note You must set one of the Threshold and ThresholdPercent parameters.
160
ThresholdPercentfloatNo

The percentage of the alert threshold. Valid values:

  • If you set the ThresholdType parameter to used, you will receive an alert notification when the used quota is greater than or equal to the preset percentage of the alert threshold. Value range: (50%, 100%].
  • If you set the ThresholdType parameter to usable, you will receive an alert notification when the available quota is less than or equal to the preset percentage of the alert threshold. Value range: (0%, 50%].
Note You must set one of the Threshold and ThresholdPercent parameters.
51
WebHookstringNo

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

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

A95C65B3-7CF4-469E-B1D5-1CA0628A6411

Examples

Sample success responses

JSONformat

{
  "RequestId": "A95C65B3-7CF4-469E-B1D5-1CA0628A6411"
}

Error codes

HTTP status codeError codeError message
400RAM.PERMISSION.DENIEDYou 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 timeSummary of changesOperation
2023-09-22API Description Update,The error codes of the API operation change.see changesets
Change itemChange content
API DescriptionAPI Description Update
Error CodesThe error codes of the API operation change.
    delete Error Codes: 400
2023-09-04The error codes of the API operation change.see changesets
Change itemChange content
Error CodesThe error codes of the API operation change.
    Added Error Codes: 400