All Products
Search
Document Center

Quota Center:ModifyTemplateQuotaItem

Last Updated:Apr 19, 2023

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

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
IdstringYes

The ID of the quota template. For more information about how to obtain the ID of a quota template, see ListQuotaApplicationTemplates.

1****
ProductCodestringNo

The abbreviation of the Alibaba Cloud service name.

ecs
QuotaActionCodestringNo

The ID of the quota.

q_security-groups
DimensionsarrayNo

The quota dimensions.

objectNo

The quota dimension.

KeystringNo

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
ValuestringNo

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
DesireValuefloatNo

The requested value of the quota.

804
NoticeTypelongNo

Specifies whether to send a notification about the application result. Valid values:

  • 0 (default value): no
  • 3: yes
0
EnvLanguagestringNo

The language of the quota alert notification. Valid values:

  • zh (default value): Chinese
  • en: English
zh
EffectiveTimestringNo

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
ExpireTimestringNo

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
QuotaCategorystringNo

The type of the quota. Valid values:

  • CommonQuota (default value): general quota
  • WhiteListLabel: privilege
  • FlowControl: API rate limit
CommonQuota

Response parameters

ParameterTypeDescriptionExample
object

None.

RequestIdstring

The ID of the request.

D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053
Idstring

The ID of the quota template.

1****

Examples

Sample success responses

JSONformat

{
  "RequestId": "D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053",
  "Id": "1****"
}

Error codes

HTTP status codeError codeError messageDescription
400TEMPLATE.NOT.FOUNDQuota template does not exist.The quota template information does not exist.
400UNSUPPORT.UPDATE.PRODUCTCODE.QUOTACODEModification of product name, quota code and dimension data is not supportedThe product name, quota code, and dimension cannot be modified.

For a list of error codes, visit the Service error codes.