Buat custom image dari cloud desktop Wuying yang telah dideploy untuk membuat desktop tambahan dengan konfigurasi yang sama secara cepat, sehingga menghilangkan kebutuhan mengonfigurasi ulang lingkungan pada setiap instans baru.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
appstreaming:CreateImageByInstance |
create |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ImageName |
string |
No |
Nama image. |
test |
| Description |
string |
No |
Deskripsi image. |
my test image v1.0 |
| InstanceId |
string |
No |
ID instans sumber Elastic Desktop Service. Instans tersebut dapat berupa cloud desktop atau workstation. Untuk memastikan konsistensi data, kami menyarankan Anda mematikan instans sebelum membuat image. |
ws-0buj1s9gm****** |
| SubInstanceId |
string |
No |
ID sub-instans. Parameter ini tidak berlaku untuk instans cloud desktop. Untuk instans workstation, tentukan ID session persisten. |
p-0cc7s3n1l***** |
| InstanceType |
string |
No |
Tipe instans. Valid values:
|
WuyingServer |
| AutoCleanUserdata |
boolean |
No |
Menentukan apakah akan menghapus data pengguna. Parameter ini hanya berlaku untuk instans cloud desktop. Jika diatur ke true, data di semua direktori di bawah C:\Users akan dihapus, kecuali direktori Administrator dan Public. Valid values:
|
false |
| DiskType |
string |
No |
Menentukan disk mana yang akan disertakan dalam image. Secara default, baik sistem disk maupun data disk disertakan. Valid values:
|
ALL |
| BizType |
integer |
No |
Parameter ini dicadangkan untuk penggunaan internal. |
1 |
| ProductType |
string |
No |
Parameter ini dicadangkan untuk penggunaan internal. |
WuyingServer |
| TagList |
array<object> |
No |
||
|
object |
No |
|||
| Key |
string |
No |
||
| Value |
string |
No |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Badan respons. |
||
| Data |
object |
Objek data. |
|
| ImageId |
string |
ID image Wuying. |
imgc-07hnjj5fp**** |
| VersionId |
string |
Versi gambar. |
iv-0abxi0lbi***** |
| TaskId |
string |
ID task pembuatan image. |
tid-0abxi0lbih****** |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. |
true |
| Code |
string |
Kode kesalahan yang dikembalikan jika permintaan gagal. |
200 |
| Message |
string |
Pesan kesalahan yang dikembalikan jika permintaan gagal. |
NULL |
| RequestId |
string |
ID permintaan. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
Contoh
Respons sukses
JSONformat
{
"Data": {
"ImageId": "imgc-07hnjj5fp****",
"VersionId": "iv-0abxi0lbi*****",
"TaskId": "tid-0abxi0lbih******"
},
"Success": true,
"Code": "200",
"Message": "NULL",
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Instance.NotFound | The instance is not found. | |
| 400 | DesktopInstance.NotFound | The cloud computer instance does not exist. | |
| 400 | Instance.ImageUnsupported | A non-centralized image does not support this type of operation. | |
| 400 | Instance.PhysicalNodeNotExist | The instance physical node does not exist. | |
| 400 | ImageCreateByInstance.TaskExist | The image task of instance creation already exists. | |
| 400 | ExceedBuilderQuota | The maximum number of builders is reached. | |
| 400 | InvalidBaseImage.NotConfigured | Configuration required for Vhd/Container images. | |
| 400 | CreateDesktopImageRecord.Failed | Create cloud computer image failed. | |
| 400 | Image.NotExist | The image does not exist. | |
| 400 | ImageRegionDistribute.NotAllow | This image cannot be distributed. | |
| 400 | ImageUpdateFailed.NotAllow | The image is not allowed to be modified. | |
| 400 | ImageUpdateSharedImageFailed.NotAllow | The shared image is not allowed to be modified. | |
| 400 | ParentImageRegionDistribute.NotExist | The target distribution region of the parent image does not exist. | |
| 400 | InternalError | Internal error. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.