Only the administrator account of a resource directory can modify a quota template. Modifications to a quota template apply only to new members that are added to the resource directory and do not affect existing members.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
quotas:ModifyTemplateQuotaItem |
update |
*TemplateQuota
|
None | None |
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. Note
For more information about how to obtain the abbreviation of an Alibaba Cloud service name, see the |
ecs |
| QuotaActionCode |
string |
No |
The quota ID. Note
For more information about how to obtain the quota ID of an Alibaba Cloud service, see the |
q_security-groups |
| 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 |
| DesireValue |
number |
No |
The value of the quota that you want to apply for. Note
|
804 |
| NoticeType |
integer |
No |
Specifies whether to send a notification about the application result. Valid values:
|
0 |
| 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 is applicable only to privileges (WhiteListLabel). Note
If you do not specify this parameter, the quota takes effect immediately. |
2021-01-19T09:25:56Z |
| ExpireTime |
string |
No |
The UTC time when the quota expires. This parameter is applicable only to privileges (WhiteListLabel). Note
If you do not specify this parameter, the quota does not expire. |
2021-01-20T09:25:56Z |
| QuotaCategory |
string |
No |
The quota type. Valid values:
|
CommonQuota |
Response elements
|
Parameter |
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.FOUND | Quota template does not exist. | |
| 400 | UNSUPPORT.UPDATE.PRODUCTCODE.QUOTACODE | Modification of product name, quota code and dimension data is not supported | |
| 400 | RAM.PERMISSION.DENIED | You are not authorized to do this action or the API input parameter is invalid. | |
| 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. | |
| 400 | QUOTA.DESIREVALUE.ILLEGAL | DesirValue less than or equal to the current quota value, or that is not within the adjustable range. | |
| 400 | UNSUPPORT.UPDATE.DIMENSIONS | The Quota dimension don't support be modified when you update quota template. | |
| 400 | TEMPLATE.ITEM.NOT.FOUND | Quota template item does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.