Menghapus gambar kustom AppStream.
Deskripsi operasi
Anda hanya dapat menghapus gambar kustom yang Anda miliki.
Untuk gambar yang terkait dengan lini produk AppStream Cloud Computer Pool, AppStream Cloud Application, atau AppStream Workstation, pastikan tidak ada instans AppStream yang menggunakan gambar tersebut sebelum menghapusnya.
Jika templat AppStream Cloud Desktop mereferensikan suatu gambar, templat tersebut juga akan dihapus saat gambar tersebut dihapus.
Jika suatu gambar tersedia di beberapa Wilayah, penghapusannya akan berlaku di semua Wilayah tersebut.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ImageId |
string |
No |
ID gambar AppStream. |
img-bp13mu**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Struktur respons. |
||
| Data |
boolean |
Menunjukkan apakah penghapusan berhasil. Valid values:
|
true |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. |
true |
| Code |
string |
Kode status:
|
200 |
| Message |
string |
Pesan error yang dikembalikan saat terjadi error. |
successful |
| RequestId |
string |
ID permintaan. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
Contoh
Respons sukses
JSONformat
{
"Data": true,
"Success": true,
"Code": "200",
"Message": "successful",
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InternalError | Internal error. | |
| 400 | Image.NotExist | The image does not exist. | |
| 400 | ImageDeleteFailed.NotAllow | The image is not allowed to be deleted. | |
| 400 | ImageDeleteFailed.NotAllowCommunityParent | The parent image of a community image is not allowed to be deleted. | |
| 400 | ImageDeleteFailed.NotAllowSharedImage | The shared image is not allowed to be deleted. | |
| 400 | ImageNotAllowDelete | The image cannot be deleted, because shared cloud computers already exist. | |
| 400 | InvalidImageOperation.ImageIsCreating | Failed to operation the image, it is creating. | |
| 400 | DeleteTemplate.Failed | Delete template failed. | |
| 400 | QueryTemplate.Failed | Query template failed. | |
| 400 | InvalidTemplate.NotFound | Template not found. | |
| 400 | ImageDeleteFailed.HasSharedImage | The shared image is not allowed to be deleted. | |
| 500 | ServiceUnavailable | Service unavailable. Please try again later. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.