Modifies a quota template by using the management account of a resource directory. After you modify a quota template, the modification takes effect only for the members that are added to the resource directory by the management account. The quota values for existing members remain unchanged.
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Id | string | Yes | The ID of the quota template. For more information about how to obtain the ID of a quota template, see ListQuotaApplicationTemplates. | 1**** |
ProductCode | string | No | The abbreviation of the Alibaba Cloud service name. NoteFor more information, see Alibaba Cloud services that support Quota Center. | ecs |
QuotaActionCode | string | No | The ID of the quota. | q_security-groups |
Dimensions | array | No | The quota dimensions. | |
object | No | The quota dimension. | ||
Key | string | No | The key of the dimension. The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service. NoteThis parameter is required if you set the ProductCode parameter to ecs, ecs-spec, actiontrail, or ess. | regionId |
Value | string | No | The value of the dimension. The value range of N varies based on the number of dimensions that are supported by the related Alibaba Cloud service. NoteThis parameter is required if you set the ProductCode parameter to ecs, ecs-spec, actiontrail, or ess. | cn-hangzhou |
DesireValue | float | No | The requested value of the quota. | 804 |
NoticeType | long | No | Specifies whether to send a notification about the application result. Valid values:
| 0 |
EnvLanguage | string | No | The language of the quota alert notification. Valid values:
| zh |
EffectiveTime | string | No | The start time of the validity period of the quota. Specify the value in UTC. This parameter is valid only if you set the QuotaCategory parameter to WhiteListLabel. NoteIf you leave this parameter empty, the quota takes effect immediately. | 2021-01-19T09:25:56Z |
ExpireTime | string | No | The end time of the validity period of the quota. Specify the value in UTC. This parameter is valid only if you set the QuotaCategory parameter to WhiteListLabel. NoteIf you leave this parameter empty, no end time is specified. | 2021-01-20T09:25:56Z |
QuotaCategory | string | No | The type of the quota. Valid values:
| CommonQuota |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053",
"Id": "1****"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | TEMPLATE.NOT.FOUND | Quota template does not exist. | The quota template information does not exist. |
400 | UNSUPPORT.UPDATE.PRODUCTCODE.QUOTACODE | Modification of product name, quota code and dimension data is not supported | The product name, quota code, and dimension cannot be modified. |
For a list of error codes, visit the Service error codes.