Queries the quotas of a specified cloud service.
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 used to retrieve the next page of results.
|
AAAAAd**** |
| MaxResults |
integer |
No |
The maximum number of entries to return in a single request. Valid values: 1 to 100. Default value: 30. |
30 |
| ProductCode |
string |
Yes |
The abbreviation of the cloud service. Note
For more information about how to obtain the abbreviation of a cloud service, see |
ecs |
| QuotaActionCode |
string |
No |
The ID of the quota. |
q_security-groups |
| KeyWord |
string |
No |
The search keyword for the quota. Note
This parameter applies only to Elastic Computing Service server instance type quotas (ecs-spec). The search scope includes |
security |
| SortField |
string |
No |
The sorting method supported by the quota. Note
This parameter applies only to Elastic Computing Service server instance type quotas (ecs-spec). If no Settings are specified, it is left empty. Valid values:
|
TIME |
| SortOrder |
string |
No |
The sorting method supported by the quota. Note
This parameter applies only to Elastic Computing Service server instance type quotas (ecs-spec). If no Settings are specified, it is left empty. 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 range of N depends on the number of dimensions supported by the corresponding cloud service. |
regionId |
| Value |
string |
No |
The value of the quota dimension. Note
The value range of N depends on the number of dimensions supported by the corresponding cloud service. |
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 response. |
||
| MaxResults |
integer |
The maximum number of records returned for the current query. |
1 |
| NextToken |
string |
Indicates whether a token for the next query is available.
|
AAAAAd**** |
| Quotas |
array<object> |
The quota details. |
|
|
array<object> |
The quota details. |
||
| Adjustable |
boolean |
Indicates whether the quota is adjustable. Valid values:
|
true |
| ApplicableRange |
array |
The range of quota values that can be applied for the current quota item, which serves as a reference for quota applications. |
|
|
number |
The range of quota values that can be applied for the current quota item. This range excludes the existing range of the current user and serves as a reference for quota applications. Example: |
[1010,10000] |
|
| ApplicableType |
string |
The quota adjustment type. Valid values:
|
discontinuous |
| ApplyReasonTips |
string |
The sample reasons for applying for a quota adjustment. |
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 quota calculation period. |
|
| PeriodUnit |
string |
The unit of the quota calculation period. Valid values:
|
day |
| PeriodValue |
integer |
The value of the quota calculation period. |
{} |
| ProductCode |
string |
The abbreviation of the cloud service name. |
ecs |
| QuotaActionCode |
string |
The ID of the quota. |
q_security-groups |
| QuotaArn |
string |
The ARN of the quota. |
acs:quotas:cn-hangzhou:120886317861****:quota/ecs/q_security-groups |
| QuotaCategory |
string |
The quota type. Valid values:
|
CommonQuota |
| QuotaDescription |
string |
The quota description. |
The maximum number of security groups that can be owned by the current account. |
| QuotaItems |
array<object> |
The quota details. |
|
|
object |
The quota details. |
||
| Quota |
string |
The quota value. |
1009 |
| QuotaUnit |
string |
The quota unit. |
Count |
| Type |
string |
The quota category. Valid values:
|
BaseQuota |
| Usage |
string |
The quota usage. |
1009 |
| QuotaName |
string |
The quota name. |
ecs.g5.2xlarge |
| QuotaType |
string |
The quota type. Valid values:
|
privilege |
| QuotaUnit |
string |
The quota unit. |
AMOUNT |
| SupportedRange |
array |
The range of quota values supported by the current quota item, which serves as a reference when you configure a quota template. |
|
|
number |
The range of quota values supported by the current quota item, which serves 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 this quota in CloudMonitor. |
|
| MetricDimensions |
object |
The CloudMonitor monitoring dimensions. Format: a collection of |
|
|
string |
The CloudMonitor monitoring dimension values. |
ecs |
|
| MetricName |
string |
The name of the CloudMonitor monitoring metric. |
Usage |
| MetricNamespace |
string |
The namespace of the CloudMonitor monitoring data. |
acs_quotas_flowcontrol |
| RequestId |
string |
The request ID. |
D0131FD5-5397-44FE-BF5A-4B7165B813CC |
| TotalCount |
integer |
The total number of records returned for the current 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.