Mengkueri sumber daya image yang dapat Anda gunakan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DescribeImages |
list |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| EnsRegionId |
string |
No |
ID node ENS. |
cn-dalian-unicom |
| ImageId |
string |
No |
ID image. Hanya satu ID yang didukung. Baik image kustom maupun image publik didukung. |
m-5qm2r6xo7njrpdkx04q1o**** |
| Status |
string |
No |
Parameter ini saat ini tidak digunakan. |
此参数暂不使用。 |
| ImageName |
string |
No |
Nama image kustom. Panjangnya harus 2 hingga 128 karakter. Harus diawali dengan huruf kapital atau huruf kecil atau karakter Mandarin, dan tidak boleh diawali dengan Nilai default: kosong, menandakan bahwa nama asli dipertahankan. |
centos_6_08_64_20G_a**** |
| PageNumber |
string |
No |
Nomor halaman daftar kueri. Nilai awal adalah 1. Nilai default: 1. |
1 |
| PageSize |
string |
No |
Jumlah baris per halaman yang ditetapkan untuk kueri yang dipaginasi. Nilai maksimum adalah 50 baris. Nilai default: 10. |
50 |
| SnapshotId |
string |
No |
ID snapshot. |
mock-clone_snapshot_id |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
Kode pengembalian bisnis. Mengembalikan 0 jika berhasil. |
0 |
| Images |
object |
||
| Image |
array<object> |
Kumpulan informasi image. |
|
|
array<object> |
Kumpulan informasi image. |
||
| Architecture |
string |
The architecture of the image. Example: x86_64. |
x86_64 |
| CreationTime |
string |
The time when the image was created. The time follows the ISO 8601 standard. |
2017-12-08T12:10:03Z |
| ImageId |
string |
The ID of the image. |
centos_6_08_64_20G_alibase_2017**** |
| ImageName |
string |
The name of the image. |
Ubuntu_16.04 |
| ImageOwnerAlias |
string |
The source of the image. Valid values:
|
system |
| ImageSize |
string |
The size of the image. Unit: GiB. |
40 |
| Platform |
string |
The operating system type of the image. Valid values:
|
centos |
| SnapshotId |
string |
The ID of the snapshot. |
mock-clone_snapshot_id |
| DiskDeviceMappings |
object |
||
| DiskDeviceMapping |
array<object> |
The mappings between the disk and the snapshot in the image. |
|
|
object |
The mappings between the disk and the snapshot in the image. |
||
| Type |
string |
The type of the disk. Valid values:
|
Data |
| Size |
string |
The size of the disk. Unit: GiB. |
100 |
| Format |
string |
The format of the image. |
镜像格式。 raw qcow2 |
| imageId |
string |
The ID of image. |
i-test |
| RegionId |
string |
The region ID. |
cn-beijing |
| PageNumber |
integer |
Nomor halaman saat ini. |
1 |
| PageSize |
integer |
Jumlah baris per halaman dalam kueri saat ini. |
10 |
| RequestId |
string |
ID permintaan. |
8331AA01-C16D-5481-BB47-D19CEBAA811E |
| TotalCount |
integer |
Jumlah total image. |
4 |
Contoh
Respons sukses
JSONformat
{
"Code": 0,
"Images": {
"Image": [
{
"Architecture": "x86_64",
"CreationTime": "2017-12-08T12:10:03Z",
"ImageId": "centos_6_08_64_20G_alibase_2017****",
"ImageName": "Ubuntu_16.04",
"ImageOwnerAlias": "system",
"ImageSize": "40",
"Platform": "centos",
"SnapshotId": "mock-clone_snapshot_id",
"DiskDeviceMappings": {
"DiskDeviceMapping": [
{
"Type": "Data",
"Size": "100",
"Format": "镜像格式。\nraw\nqcow2",
"imageId": "i-test"
}
]
},
"RegionId": "cn-beijing"
}
]
},
"PageNumber": 1,
"PageSize": 10,
"RequestId": "8331AA01-C16D-5481-BB47-D19CEBAA811E",
"TotalCount": 4
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | The input parameters that is mandatory for processing this request is not supplied. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.