After a management account creates a quota template, the template automatically submits a quota increase request for any new member added to the resource directory. Existing members are not affected. Quota templates allow you to request increases for multiple quota items at once, which improves the efficiency and automation of quota management for your entire organization. Only the management account of a resource directory can create quota templates.
Operation description
Prerequisites
Make sure the quota template service is enabled. The ServiceStatus parameter must be 1.
You can call the GetQuotaTemplateServiceStatus operation to query the status of the quota template service. If the ServiceStatus is 0 (not set) or -1 (disabled), you can call the ModifyQuotaTemplateServiceStatus operation to change the status to 1 (enabled).
Usage notes
After you create a quota template, you can call the ListQuotaApplicationsForTemplate operation to view the approval result. If the Status parameter is Agree, the request is approved.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
quotas:CreateTemplateQuotaItem |
create |
*TemplateQuota
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProductCode |
string |
Yes |
The abbreviation of the Alibaba Cloud service name. Note
For more information about how to obtain the abbreviation of an Alibaba Cloud service name, see the |
ecs |
| QuotaActionCode |
string |
Yes |
The quota ID. Note
For more information about how to obtain the quota ID of an Alibaba Cloud service, see the |
q_security-groups |
| DesireValue |
number |
Yes |
The value of the quota request. Note
|
804 |
| NoticeType |
integer |
No |
Specifies whether to send a notification for the result of the quota request. Valid values:
|
0 |
| Dimensions |
array<object> |
No |
The quota dimensions. |
|
|
object |
No |
The quota dimension. |
||
| Key |
string |
No |
The key of the quota dimension. Note
|
regionId |
| Value |
string |
No |
The value of the quota dimension. Note
|
cn-hangzhou |
| EnvLanguage |
string |
No |
The language of the notification for a quota alert. Valid values:
|
zh |
| EffectiveTime |
string |
No |
The UTC time when the quota takes effect. This parameter applies only to privileges (WhiteListLabel). Note
If this parameter is empty, the quota takes effect immediately. |
2021-01-19T09:25:56Z |
| ExpireTime |
string |
No |
The UTC time when the quota expires. This parameter applies only to privileges (WhiteListLabel). Note
If this parameter is empty, no expiration time is specified. |
2021-01-20T09:25:56Z |
| QuotaCategory |
string |
No |
The type of the quota. Valid values:
|
CommonQuota |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
None. |
||
| Id |
string |
The ID of the quota template. |
1**** |
| RequestId |
string |
The request ID. |
D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053 |
Examples
Success response
JSON format
{
"Id": "1****",
"RequestId": "D47B3A10-CDAC-5412-B2EE-EC9A3DBE9053"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | TEMPLATE.NOT.RD.MA | The requested account is not the MA master account of RD and does not have permission to operate quota templates. | The current account is not the management account of the resource directory and does not have the permissions to manage the quota template. |
| 400 | QUOTA.DESIREVALUE.ILLEGAL | DesirValue less than or equal to the current quota value, or that is not within the adjustable range. | DesirValue less than or equal to the current quota value, or that is not within the adjustable range. |
| 400 | QUOTA.NOT.ADJUSTABLE | Quota is not adjustable | The quota is not adjustable. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.