Mengkueri detail unit kapasitas penyimpanan (SCU). Anda dapat memfilter hasil berdasarkan nama, status, dan 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 terbaru. |
cn-hangzhou |
| PageNumber |
integer |
No |
Nomor halaman daftar SCU. Nilai minimum: 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. Panjang nama harus 2 hingga 128 karakter dan dapat berisi huruf, angka, titik dua (:), garis bawah (_), dan tanda hubung (-). Nama harus diawali dengan huruf dan tidak dapat diawali dengan |
testScuName |
| Capacity |
integer |
No |
Kapasitas SCU. Unit: GiB. Nilai valid: {20, 40, 100, 200, 500, 1024, 2048, 5120, 10240, 20480, 51200}. |
20 |
| AllocationType |
string |
No |
Tipe alokasi. Nilai 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 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 dalam kueri berhalaman. |
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> |
Detail SCU. |
|
|
array<object> |
|||
| CreationTime |
string |
Waktu pembuatan SCU. Waktu mengikuti standar ISO 8601 dalam UTC. |
2021-08-17T02:55Z |
| Status |
string |
Status SCU. Nilai valid:
|
Active |
| StartTime |
string |
Waktu mulai berlaku SCU. Waktu mengikuti standar ISO 8601 dalam UTC. |
2021-08-17T02:55Z |
| Capacity |
integer |
Kapasitas SCU. |
20 |
| Description |
string |
Deskripsi SCU. |
testScuDescription |
| AllocationStatus |
string |
Status alokasi SCU ketika AllocationType diatur ke Shared. Nilai valid:
|
allocated |
| ExpiredTime |
string |
Waktu kedaluwarsa SCU. Waktu mengikuti standar ISO 8601 dalam UTC. |
2021-09-17T16:00Z |
| StorageCapacityUnitId |
string |
ID SCU. |
scu-bp67acfmxazb4p**** |
| Name |
string |
Nama SCU. |
testScuName |
| RegionId |
string |
ID wilayah SCU. |
cn-hangzhou |
| Tags |
object |
||
| Tag |
array<object> |
Pasangan kunci dan nilai tag SCU. |
|
|
object |
|||
| TagValue |
string |
Nilai tag SCU. |
TestKey |
| TagKey |
string |
Kunci tag SCU. |
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. | Parameter RegionId tidak boleh kosong. |
| 400 | InvalidParameter.Name | The specified Name is invalid. | Parameter Name yang ditentukan tidak valid. |
| 400 | InvalidParameter.CapacityExceed | The specified Capacity exceeds the limitation of quota. | Parameter Capacity yang ditentukan melebihi nilai valid maksimum. |
| 400 | InvalidAllocationType.ValueNotSupported | The specified AllocationType is not supported. | Tipe alokasi yang ditentukan tidak valid. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.