Queries a list of quotas for a specified cloud product.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
quotas:ListProductQuotas |
list |
*Quota
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| NextToken |
string |
No |
The token that is used to initiate the next query.
|
AAAAAd**** |
| MaxResults |
integer |
No |
The maximum number of records to return for the query. Valid values: 1 to 100. Default value: 30. |
30 |
| ProductCode |
string |
Yes |
The abbreviation of the cloud product. Note
For more information about how to obtain the abbreviation of a cloud product, see the |
ecs |
| QuotaActionCode |
string |
No |
The quota ID. |
q_security-groups |
| KeyWord |
string |
No |
The keyword to use for searching quotas. Note
This parameter is applicable only to instance type quotas of Elastic Compute Service (ECS). The search is performed on |
security |
| SortField |
string |
No |
The field to use for sorting the quotas. Note
This parameter is applicable only to instance type quotas of ECS. If you do not set this parameter, the query results are not sorted. Valid values:
|
TIME |
| SortOrder |
string |
No |
The order to sort the results. Note
This parameter is applicable only to instance type quotas of ECS. If you do not set this parameter, the query results are not sorted. Valid values:
|
Ascending |
| Dimensions |
array<object> |
No |
The quota dimensions. |
|
|
object |
No |
The quota dimensions. |
||
| Key |
string |
No |
The key of the quota dimension. Note
The value of N depends on the number of dimensions that are supported by the cloud product. |
regionId |
| Value |
string |
No |
The value of the quota dimension. Note
The value of N depends on the number of dimensions that are supported by the cloud product. |
cn-hangzhou |
| QuotaCategory |
string |
No |
The quota category. Default value: CommonQuota. Valid values:
|
FlowControl |
| GroupCode |
string |
No |
The code of the dimension group. |
entconsole_w1j3ms**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned result. |
||
| MaxResults |
integer |
The maximum number of records returned for the query. |
1 |
| NextToken |
string |
The token that is used to initiate the next query.
|
AAAAAd**** |
| Quotas |
array<object> |
The details of the quotas. |
|
|
array<object> |
The details of the quota. |
||
| Adjustable |
boolean |
Indicates whether the quota is adjustable. Valid values:
|
true |
| ApplicableRange |
array |
The range of the quota value that you can request for the quota. This can be used as a reference for quota increase requests. |
|
|
number |
The range of the quota value that you can request. This range does not include the existing quota of the user. You can use this as a reference when you request a quota increase. For example, |
[1010,10000] |
|
| ApplicableType |
string |
The type of the quota adjustment. Valid values:
|
discontinuous |
| ApplyReasonTips |
string |
An example of the reason for a quota increase request. |
The business xxx is expected to grow by 50%. |
| Consumable |
boolean |
Indicates whether the used quota is displayed. Valid values:
|
true |
| Dimensions |
object |
The quota dimensions. Format: |
{"regionId":"cn-hangzhou"} |
| EffectiveTime |
string |
The UTC time when the quota takes effect. |
2022-09-28T06:07:00Z |
| ExpireTime |
string |
The UTC time when the quota expires. |
2022-09-29T06:07:00Z |
| GlobalQuota |
boolean |
Indicates whether the quota is a global quota. Valid values:
|
true |
| Period |
object |
The calculation cycle of the quota. |
|
| PeriodUnit |
string |
The unit of the calculation cycle. Valid values:
|
day |
| PeriodValue |
integer |
The value of the calculation cycle. |
{} |
| ProductCode |
string |
The abbreviation of the cloud product. |
ecs |
| QuotaActionCode |
string |
The quota ID. |
q_security-groups |
| QuotaArn |
string |
The Alibaba Cloud Resource Name (ARN) of the quota. |
acs:quotas:cn-hangzhou:120886317861****:quota/ecs/q_security-groups |
| QuotaCategory |
string |
The quota category. Valid values:
|
CommonQuota |
| QuotaDescription |
string |
The description of the quota. |
The maximum number of security groups that can be owned by the current account. |
| QuotaItems |
array<object> |
The details of the quota. |
|
|
object |
The details of the quota. |
||
| Quota |
string |
The quota value. |
1009 |
| QuotaUnit |
string |
The unit of the quota. |
Count |
| Type |
string |
The quota type. Valid values:
|
BaseQuota |
| Usage |
string |
The quota usage. |
1009 |
| QuotaName |
string |
The name of the quota. |
ecs.g5.2xlarge |
| QuotaType |
string |
The quota type. Valid values:
|
privilege |
| QuotaUnit |
string |
The unit of the quota. |
AMOUNT |
| SupportedRange |
array |
The range of the quota value that is supported by the quota. This can be used as a reference when you configure a quota template. |
|
|
number |
The range of the quota value that is supported by the quota. This can be used as a reference when you configure a quota template.
|
[1009,10000] |
|
| TotalQuota |
number |
The quota value. |
200 |
| TotalUsage |
number |
The quota usage. |
1009 |
| UnadjustableDetail |
string |
The reason why the quota is not adjustable. Valid values:
|
applicationProcess |
| UsageMetric |
object |
The monitoring information of the quota usage in CloudMonitor. Note
An empty value indicates that no monitoring data is available for the quota in CloudMonitor. |
|
| MetricDimensions |
object |
The dimensions for CloudMonitor. Format: a collection of key-value pairs. For example:
|
|
|
string |
The value of the dimension for CloudMonitor. |
ecs |
|
| MetricName |
string |
The name of the CloudMonitor metric. |
Usage |
| MetricNamespace |
string |
The namespace of the metric for CloudMonitor. |
acs_quotas_flowcontrol |
| RequestId |
string |
The request ID. |
D0131FD5-5397-44FE-BF5A-4B7165B813CC |
| TotalCount |
integer |
The total number of records returned for the request. |
1 |
Examples
Success response
JSON format
{
"MaxResults": 1,
"NextToken": "AAAAAd****",
"Quotas": [
{
"Adjustable": true,
"ApplicableRange": [
0
],
"ApplicableType": "discontinuous",
"ApplyReasonTips": "The business xxx is expected to grow by 50%.",
"Consumable": true,
"Dimensions": {
"regionId": "cn-hangzhou"
},
"EffectiveTime": "2022-09-28T06:07:00Z",
"ExpireTime": "2022-09-29T06:07:00Z",
"GlobalQuota": true,
"Period": {
"PeriodUnit": "day",
"PeriodValue": 0
},
"ProductCode": "ecs",
"QuotaActionCode": "q_security-groups",
"QuotaArn": "acs:quotas:cn-hangzhou:120886317861****:quota/ecs/q_security-groups",
"QuotaCategory": "CommonQuota",
"QuotaDescription": "The maximum number of security groups that can be owned by the current account.",
"QuotaItems": [
{
"Quota": "1009",
"QuotaUnit": "Count",
"Type": "BaseQuota",
"Usage": "1009"
}
],
"QuotaName": "ecs.g5.2xlarge",
"QuotaType": "privilege",
"QuotaUnit": "AMOUNT",
"SupportedRange": [
0
],
"TotalQuota": 200,
"TotalUsage": 1009,
"UnadjustableDetail": "applicationProcess",
"UsageMetric": {
"MetricDimensions": {
"key": "ecs"
},
"MetricName": "Usage",
"MetricNamespace": "acs_quotas_flowcontrol"
}
}
],
"RequestId": "D0131FD5-5397-44FE-BF5A-4B7165B813CC",
"TotalCount": 1
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidSortOrder | Invalid SortOrder | The specified SortOrder parameter is invalid. |
| 400 | INVALID.MAX.RESULTS | The maxResults parameter is invalid. Use an integer ranging from 1 to 100. | The maxResults value is invalid. It must be an integer within the range of 1 to 100. |
| 400 | DIMENSIONGROUP.NOT.FOUND | Dimension group does not exist. | Dimension group parameter is incorrect |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.