Mengkueri kuota sumber daya ECS yang dapat Anda buat di region Alibaba Cloud, termasuk jumlah grup keamanan, jumlah antarmuka jaringan elastis (ENI), jumlah vCPU untuk instans pay-as-you-go, jumlah vCPU untuk instans preemptible, kuota kapasitas total disk pay-as-you-go, jumlah host khusus, tipe jaringan, dan apakah akun telah menyelesaikan verifikasi nama asli.
Deskripsi operasi
Setelah Anda mendaftar akun Alibaba Cloud, Anda dapat membuat sejumlah sumber daya ECS di berbagai region Alibaba Cloud. Untuk informasi lebih lanjut, lihat Batasan.
Anda juga dapat mengajukan kuota sumber daya yang lebih tinggi di Pusat Kuota sesuai kebutuhan Anda.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DescribeAccountAttributes |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID region. Anda dapat memanggil DescribeRegions untuk mengkueri daftar region terbaru. |
cn-hangzhou |
| ZoneId |
string |
No |
ID zona. |
cn-hangzhou-b |
| AttributeName |
array |
No |
Kuota penggunaan dari tipe sumber daya di region yang ditentukan. Nilai N berkisar dari 1 hingga 8. Nilai yang valid:
Nilai default kosong. |
max-security-groups |
|
string |
No |
Kuota penggunaan dari tipe sumber daya di region yang ditentukan. Nilai N berkisar dari 1 hingga 8. Nilai yang valid:
Nilai default kosong. |
max-security-groups |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
8CE45CD5-31FB-47C2-959D-CA8144CE**** |
| AccountAttributeItems |
object |
||
| AccountAttributeItem |
array<object> |
Koleksi entri AccountAttributeItem yang berisi informasi tentang hak istimewa akun di region yang ditentukan. |
|
|
array<object> |
|||
| AttributeName |
string |
The type of the resource quota in the specified region. Valid values:
|
max-security-groups |
| AttributeValues |
object |
||
| ValueItem |
array<object> |
The values of resource quotas. |
|
|
object |
|||
| DiskCategory |
string |
The data disk category. Valid values:
|
cloud_ssd |
| Value |
string |
The value of the resource quota in the specified region. Valid values: The values returned for the resource quotas to which the following AttributeName values correspond are 0 or positive integers:
When AttributeName is set to supported-postpay-instance-types, instance types are returned. For more information, see Overview of instance families. When AttributeName is set to real-name-authentications, one of the following values is returned:
When AttributeName is set to instance-network-type, one of the following values is returned:
|
800 |
| ExpiredTime |
string |
The expiration time of a privilege. This parameter is returned only when the account privilege has an expiration time. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2019-01-01T12:30:00Z |
| ZoneId |
string |
The ID of the zone in which the resource resides. |
cn-hangzhou-b |
| InstanceType |
string |
The type of the instance. |
ecs.g5.large |
| Count |
integer |
The number of privilege attributes in the account. |
3 |
| InstanceChargeType |
string |
The billing method of the instance. |
PrePaid |
Contoh
Respons sukses
JSONformat
{
"RequestId": "8CE45CD5-31FB-47C2-959D-CA8144CE****",
"AccountAttributeItems": {
"AccountAttributeItem": [
{
"AttributeName": "max-security-groups",
"AttributeValues": {
"ValueItem": [
{
"DiskCategory": "cloud_ssd",
"Value": "800",
"ExpiredTime": "2019-01-01T12:30:00Z",
"ZoneId": "cn-hangzhou-b",
"InstanceType": "ecs.g5.large",
"Count": 3,
"InstanceChargeType": "PrePaid"
}
]
}
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | The process of creating snapshot has failed due to some unknown error. | |
| 500 | ServiceUnavailable | The service is unavailable, please try again later. | |
| 403 | Invalid.Parameter | The required parameter regionId must be not null. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.