Mengkueri hasil ekspor image dengan memanggil DescribeExportImageInfo.
Deskripsi operasi
Memanggil DescribeExportImageInfo mengembalikan daftar semua gambar kustom di bawah akun Anda. Selain properti image, status ekspor dan URL unduhan OSS juga disertakan.
URL unduhan kosong untuk image yang belum diekspor.
Jika Anda menghapus konten dari OSS secara manual, URL unduhan dapat menjadi tidak valid.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DescribeExportImageInfo |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ImageId |
string |
No |
ID image. |
m-xxxxx |
| ImageName |
string |
No |
Nama image. |
testImageName |
| PageNumber |
integer |
No |
Nomor halaman daftar status instans. Nilai minimum: 1. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman untuk kueri berhalaman. Nilai maksimum: 50. Nilai default: 10. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Images |
object |
||
| Image |
array<object> |
Daftar data yang dikembalikan. Untuk informasi lebih lanjut, lihat array objek Images pada contoh tanggapan (format JSON). |
|
|
object |
|||
| Architecture |
string |
The architecture of the image. Example: x86_64. |
x86_64 |
| CreationTime |
string |
The time when the image was created. |
2017-12-08T12:10:03Z |
| ExportedImageURL |
string |
The URL of the exported image. |
https://user_defined_bucket.oss-cn-beijing.aliyuncs.com/m-xxxxxxxxx1.qcow2 |
| ImageExportStatus |
string |
The export status of the image. Valid values:
|
Exported |
| ImageId |
string |
The ID of the image. |
m-xxxxxxxxx1 |
| ImageName |
string |
The name of the image. |
m-xxxxxxxxx1 |
| ImageOwnerAlias |
string |
The source of the image. Valid values:
|
system |
| Platform |
string |
The OS. |
centos |
| PageNumber |
integer |
Nomor halaman saat ini. |
1 |
| PageSize |
integer |
Jumlah entri pada halaman saat ini. |
10 |
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| TotalCount |
integer |
Jumlah total entri. |
13 |
Contoh
Respons sukses
JSONformat
{
"Images": {
"Image": [
{
"Architecture": "x86_64",
"CreationTime": "2017-12-08T12:10:03Z",
"ExportedImageURL": "https://user_defined_bucket.oss-cn-beijing.aliyuncs.com/m-xxxxxxxxx1.qcow2",
"ImageExportStatus": "Exported",
"ImageId": "m-xxxxxxxxx1",
"ImageName": "m-xxxxxxxxx1",
"ImageOwnerAlias": "system",
"Platform": "centos"
}
]
},
"PageNumber": 1,
"PageSize": 10,
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"TotalCount": 13
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | The input parameter 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. | |
| 400 | InvalidParameter | The errorMessage is %s. Please check it again. | |
| 400 | ens.interface.error | An error occurred while calling the API. | |
| 400 | CallInterface | Call Interface Happen Error. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.