Mengkueri daftar kuota untuk produk cloud tertentu.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
quotas:ListProductQuotas |
list |
*Quota
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| NextToken |
string |
No |
Token yang digunakan untuk memulai kueri berikutnya.
|
AAAAAd**** |
| MaxResults |
integer |
No |
Jumlah maksimum rekaman yang dikembalikan untuk kueri. Nilai valid: 1 hingga 100. Nilai default: 30. |
30 |
| ProductCode |
string |
Yes |
Singkatan produk cloud. Catatan
Untuk informasi selengkapnya tentang cara mendapatkan singkatan produk cloud, lihat parameter ProductCode di ListProducts. |
ecs |
| QuotaActionCode |
string |
No |
ID kuota. |
q_security-groups |
| KeyWord |
string |
No |
Kata kunci yang digunakan untuk mencari kuota. Catatan
Parameter ini hanya berlaku untuk kuota tipe instans Elastic Compute Service (ECS). Pencarian dilakukan pada |
security |
| SortField |
string |
No |
Bidang yang digunakan untuk pengurutan kuota. Catatan
Parameter ini hanya berlaku untuk kuota tipe instans ECS. Jika Anda tidak mengatur parameter ini, hasil kueri tidak diurutkan. Valid values:
|
TIME |
| SortOrder |
string |
No |
Urutan pengurutan hasil. Catatan
Parameter ini hanya berlaku untuk kuota tipe instans ECS. Jika Anda tidak mengatur parameter ini, hasil kueri tidak diurutkan. Valid values:
|
Ascending |
| Dimensions |
array<object> |
No |
Dimensi kuota. |
|
|
object |
No |
The quota dimensions. |
||
| Key |
string |
No |
The key of the quota dimension. Catatan
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. Catatan
The value of N depends on the number of dimensions that are supported by the cloud product. |
cn-hangzhou |
| QuotaCategory |
string |
No |
Kategori kuota. Nilai default: CommonQuota. Valid values:
|
FlowControl |
| GroupCode |
string |
No |
Kode kelompok dimensi. |
entconsole_w1j3ms**** |
Elemen respons
|
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. Catatan
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 |
Contoh
Respons sukses
JSONformat
{
"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
}
Kode kesalahan
|
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 |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.