Queries the details of a quota for a specified Alibaba Cloud product.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
quotas:GetProductQuota |
get |
*Quota
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProductCode |
string |
Yes |
The abbreviation of the Alibaba Cloud product name. Note
For more information, see the ProductCode parameter in ListProducts. |
ecs |
| QuotaActionCode |
string |
Yes |
The quota ID. Note
For more information, see the QuotaActionCode parameter in ListProductQuotas. |
q_security-groups |
| Dimensions |
array<object> |
No |
The quota dimensions. A quota dimension is a property of a quota. The combination of Dimensions and QuotaActionCode uniquely identifies a quota. Note
Dimensions are required for some Alibaba Cloud products. You can call the ListProductQuotaDimensions operation to query the dimensions of a quota and check whether the dimensions are required. The Requisite parameter in the response indicates whether a dimension is required. |
{\"regionId\":\"cn-beijing\"} |
|
object |
No |
The quota dimensions. |
||
| Key |
string |
No |
The key of the quota dimension. Note
Dimensions.N.Key and Dimensions.N.Value must be specified at the same time. The value of N is determined by the number of dimensions that the Alibaba Cloud product supports. You can call the ListProductQuotaDimensions operation to query the supported dimensions. The value of N is the length of the returned array. |
regionId |
| Value |
string |
No |
The value of the quota dimension. Note
Dimensions.N.Key and Dimensions.N.Value must be specified at the same time. The value of N is determined by the number of dimensions that the Alibaba Cloud product supports. You can call the ListProductQuotaDimensions operation to query the supported dimensions. The value of N is the length of the returned array. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Quota |
object |
The details of the quota. |
|
| Adjustable |
boolean |
Indicates whether the quota is adjustable. Valid values:
|
true |
| ApplicableRange |
array |
The adjustable range of the quota. |
|
|
number |
The adjustable range of the quota. For example: |
802 |
|
| ApplicableType |
string |
The type of the adjustable quota. Valid values:
|
continuous |
| 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:06:00Z |
| ExpireTime |
string |
The UTC time when the quota expires. |
2022-09-29T06:06:00Z |
| GlobalQuota |
boolean |
Indicates whether the quota is a global quota. Valid values:
|
true |
| Period |
object |
The calculation period of the quota. |
|
| PeriodUnit |
string |
The unit of the calculation period. Valid values:
|
day |
| PeriodValue |
integer |
The value of the calculation period. |
1 |
| ProductCode |
string |
The abbreviation of the Alibaba Cloud product name. |
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 category of the quota. 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 quota type. |
||
| Quota |
string |
The quota value. |
801 |
| QuotaUnit |
string |
The unit of the quota. Note
The units of quotas vary. For example, the unit of the |
Count |
| Type |
string |
The quota type. Valid values:
|
BaseQuota |
| Usage |
string |
The used quota. |
26 |
| QuotaName |
string |
The name of the quota. |
Maximum Number of Security Groups |
| QuotaType |
string |
The type of the quota. Valid values:
|
normal |
| QuotaUnit |
string |
The unit of the quota. Note
The units of quotas vary. For example, the unit of the |
Count |
| SupportedRange |
array |
The range of the quota value that is supported by the quota. You can refer to this range when you configure a quota template. |
|
|
number |
The range of the quota value that is supported by the quota. You can refer to this range when you configure a quota template.
|
[802,1000] |
|
| TotalQuota |
number |
The quota value. |
801 |
| TotalUsage |
number |
The used quota. |
26 |
| UnadjustableDetail |
string |
The reason why the quota is not adjustable. Valid values:
|
limitReached |
| UsageMetric |
object |
The information about the monitoring of the quota usage in CloudMonitor. Note
If this parameter is empty, no monitoring data is available in CloudMonitor. |
|
| MetricDimensions |
object |
The dimensions for monitoring the quota usage in CloudMonitor. Format: a collection of key-value pairs. For example:
|
|
|
string |
The value of a dimension for monitoring the quota usage in CloudMonitor. |
ecs |
|
| MetricName |
string |
The name of the metric for monitoring the quota usage in CloudMonitor. |
Usage |
| MetricNamespace |
string |
The namespace of the metric for monitoring the quota usage in CloudMonitor. |
acs_quotas_flowcontrol |
| RequestId |
string |
The request ID. |
8FF8CAF0-29D9-4F11-B6A4-FD2CBCA016D3 |
Examples
Success response
JSON format
{
"Quota": {
"Adjustable": true,
"ApplicableRange": [
802
],
"ApplicableType": "continuous",
"ApplyReasonTips": "The business xxx is expected to grow by 50%.",
"Consumable": true,
"Dimensions": {
"regionId": "cn-hangzhou"
},
"EffectiveTime": "2022-09-28T06:06:00Z",
"ExpireTime": "2022-09-29T06:06:00Z",
"GlobalQuota": true,
"Period": {
"PeriodUnit": "day",
"PeriodValue": 1
},
"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": "801",
"QuotaUnit": "Count",
"Type": "BaseQuota",
"Usage": "26"
}
],
"QuotaName": "Maximum Number of Security Groups",
"QuotaType": "normal",
"QuotaUnit": "Count",
"SupportedRange": [
0
],
"TotalQuota": 801,
"TotalUsage": 26,
"UnadjustableDetail": "limitReached",
"UsageMetric": {
"MetricDimensions": {
"key": "ecs"
},
"MetricName": "Usage",
"MetricNamespace": "acs_quotas_flowcontrol"
}
},
"RequestId": "8FF8CAF0-29D9-4F11-B6A4-FD2CBCA016D3"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.