API ini digunakan untuk mengkueri daftar informasi terperinci tentang Storage Capacity Units (SCU). API ini mendukung kueri berdasarkan kondisi seperti nama, status, dan ukuran kapasitas.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecs:DescribeStorageCapacityUnits |
get |
StorageCapacityUnit
StorageCapacityUnit
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah SCU. Anda dapat memanggil DescribeRegions untuk mengkueri daftar wilayah Alibaba Cloud terbaru. |
cn-hangzhou |
| PageNumber |
integer |
No |
Nomor halaman daftar SCU. Nilai awal: 1. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman untuk kueri berhalaman. Nilai maksimum: 100. Nilai default: 10. |
1 |
| Name |
string |
No |
Nama SCU. Nama harus memiliki panjang 2 hingga 128 karakter dan dapat berisi huruf, angka, titik dua (:), garis bawah (_), dan tanda hubung (-). Nama harus diawali dengan huruf atau karakter China dan tidak boleh diawali dengan |
testScuName |
| Capacity |
integer |
No |
Kapasitas SCU. Unit: GiB. Nilai yang valid: {20, 40, 100, 200, 500, 1024, 2048, 5120, 10240, 20480, 51200}. |
20 |
| AllocationType |
string |
No |
Tipe alokasi. Nilai yang valid:
Nilai default: Normal. |
Normal |
| StorageCapacityUnitId |
array |
No |
ID SCU. Panjang array: 1 hingga 100. |
scu-bp67acfmxazb4p**** |
|
string |
No |
ID SCU. |
scu-bp67acfmxazb4p**** |
|
| Status |
array |
No |
Status SCU. Panjang array: 1 hingga 4. |
Active |
|
string |
No |
Status SCU. Nilai yang valid:
|
Active |
|
| Tag |
array<object> |
No |
Tag. Panjang array: 0 hingga 20. |
|
|
object |
No |
|||
| Key |
string |
No |
Kunci tag SCU. |
TestKey |
| Value |
string |
No |
Nilai tag SCU. |
TestValue |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageSize |
integer |
Jumlah entri per halaman. |
10 |
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| PageNumber |
integer |
Nomor halaman daftar SCU. |
1 |
| TotalCount |
integer |
Jumlah total SCU. |
1 |
| StorageCapacityUnits |
object |
||
| StorageCapacityUnit |
array<object> |
Koleksi detail SCU yang dikembalikan sebagai array yang terdiri dari StorageCapacityUnits. |
|
|
array<object> |
|||
| CreationTime |
string |
The time when the SCU was created. |
2021-08-17T02:55Z |
| Status |
string |
The status of the SCU. Valid values:
|
Active |
| StartTime |
string |
The time when the SCU took effect. |
2021-08-17T02:55Z |
| Capacity |
integer |
The capacity of the SCU. |
20 |
| Description |
string |
The description of the SCU. |
testScuDescription |
| AllocationStatus |
string |
Indicates the allocation state of the SCU when the AllocationType parameter is set to Shared. Valid values:
|
allocated |
| ExpiredTime |
string |
The time when the SCU expires. |
2021-09-17T16:00Z |
| StorageCapacityUnitId |
string |
The ID of the SCU. |
scu-bp67acfmxazb4p**** |
| Name |
string |
The name of the SCU. |
testScuName |
| RegionId |
string |
The region ID of the SCU. |
cn-hangzhou |
| Tags |
object |
||
| Tag |
array<object> |
The tag key-value pairs of the SCU. |
|
|
object |
|||
| TagValue |
string |
The value of tag N. |
TestKey |
| TagKey |
string |
The key of tag N. |
TestValue |
Contoh
Respons sukses
JSONformat
{
"PageSize": 10,
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"PageNumber": 1,
"TotalCount": 1,
"StorageCapacityUnits": {
"StorageCapacityUnit": [
{
"CreationTime": "2021-08-17T02:55Z",
"Status": "Active",
"StartTime": "2021-08-17T02:55Z",
"Capacity": 20,
"Description": "testScuDescription",
"AllocationStatus": "allocated",
"ExpiredTime": "2021-09-17T16:00Z",
"StorageCapacityUnitId": "scu-bp67acfmxazb4p****",
"Name": "testScuName",
"RegionId": "cn-hangzhou",
"Tags": {
"Tag": [
{
"TagValue": "TestKey",
"TagKey": "TestValue"
}
]
}
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter.RegionId | The specified RegionId should not be null. | |
| 400 | InvalidParameter.Name | The specified Name is invalid. | |
| 400 | InvalidParameter.CapacityExceed | The specified Capacity exceeds the limitation of quota. | |
| 400 | InvalidAllocationType.ValueNotSupported | The specified AllocationType is not supported. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.