All Products
Search
Document Center

Quota Center:CreateTemplateQuotaItem

Last Updated:Oct 12, 2023

Creates a quota template by using the management account of a resource directory. After you create a quota template, if a member is added to the resource directory, the quota template automatically submits a quota increase request for the member. The quota values for existing members remain unchanged.

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
ProductCodestringYes

The abbreviation of the Alibaba Cloud service name.

Note For more information, see Alibaba Cloud services that support Quota Center.
ecs
QuotaActionCodestringYes

The ID of the quota.

q_security-groups
DesireValuefloatYes

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
Dimensionsobject []No

The quota dimensions.

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.

Note This 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.

Note This parameter is required if you set the ProductCode parameter to ecs, ecs-spec, actiontrail, or ess.
cn-hangzhou
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.

Note If 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.

Note If you leave this parameter empty, no end time is specified.
2021-01-20T09:25:56Z
QuotaCategorystringNo

The quota type. Valid values:

  • CommonQuota: 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

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

Change history

Change timeSummary of changesOperation
2023-09-22API Description Updatesee changesets
Change itemChange content
API DescriptionAPI Description Update
2023-05-22The internal configurations of the API operation change but you can still call the operation.see changesets
Change itemChange content
The internal configurations of the API operation change but you can still call the operation.