All Products
Search
Document Center

Elastic Desktop Service:CreateImage

Last Updated:Oct 17, 2024

Creates a custom image based on a deployed cloud computer. Then, you can use the custom image to create cloud computers that have the same configurations. This prevents the repeated settings when you create cloud computers.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID. You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou
DesktopIdstringYes

The ID of the cloud computer.

ecd-7w78ozhjcwa3u****
ImageNamestringNo

The name of the image. The name must be 2 to 128 characters in length. The name must start with a letter but cannot start with http:// or https://. The name can contain letters, digits, colons (:), underscores (_), and hyphens (-).

testImageName
DescriptionstringNo

The description of the custom image. The description must be 2 to 256 characters in length. It cannot start with http:// or https://.

This is description.
SnapshotIdstringNo

The ID of the snapshot.

s-2zefuwk8l6ytcgd3bf4o
ImageResourceTypestringNo

This parameter is not publicly available.

To be hidden.
SnapshotIdsarrayNo

The IDs of the snapshots.

stringNo

The ID of the snapshot.

[\"s-2ze2ai7op1duq4mnx5ha\"]
AutoCleanUserdatabooleanNo

Specifies whether to clear private data of users. If you set AutoCleanUserdata to true, the custom image clears the data directories, excluding the Administrator and Public directories, in the C:\Users directory.

false
DiskTypestringNo

The disk data that is contained in the custom image.

Valid values:

  • SYSTEM: only contain data from system disks.
  • ALL: contain data from system disks and user disks. [default]
ALL

Response parameters

ParameterTypeDescriptionExample
object
ImageIdstring

The ID of the image.

m-gx2x1dhsmusr2****
RequestIdstring

The ID of the request.

1CBAFFAB-B697-4049-A9B1-67E1FC5F****

Examples

Sample success responses

JSONformat

{
  "ImageId": "m-gx2x1dhsmusr2****",
  "RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****"
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-06-13The internal configuration of the API is changed, but the call is not affectedView Change Details
2022-06-22The request parameters of the API has changedView Change Details