Mengkueri detail kuota untuk produk Alibaba Cloud tertentu.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
quotas:GetProductQuota |
get |
*Quota
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ProductCode |
string |
Yes |
Singkatan nama produk Alibaba Cloud. Catatan
Untuk informasi selengkapnya, lihat parameter ProductCode di ListProducts. |
ecs |
| QuotaActionCode |
string |
Yes |
ID kuota. Catatan
Untuk informasi selengkapnya, lihat parameter QuotaActionCode di ListProductQuotas. |
q_security-groups |
| Dimensions |
array<object> |
No |
Dimensi kuota. Dimensi kuota adalah properti kuota. Kombinasi Dimensions dan QuotaActionCode mengidentifikasi sebuah kuota secara unik. Catatan
Dimensi diperlukan untuk beberapa produk Alibaba Cloud. Anda dapat memanggil operasi ListProductQuotaDimensions untuk mengkueri dimensi kuota dan memeriksa apakah dimensi tersebut diperlukan. Parameter Requisite dalam tanggapan menunjukkan apakah sebuah dimensi diperlukan. |
{\"regionId\":\"cn-beijing\"} |
|
object |
No |
The quota dimensions. |
||
| Key |
string |
No |
The key of the quota dimension. Catatan
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. Catatan
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 |
Elemen respons
|
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. Catatan
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. Catatan
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. Catatan
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 |
Contoh
Respons sukses
JSONformat
{
"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"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.