Creates a custom desktop template.

Description

Desktop templates are categorized into system templates and custom templates. System templates are the templates provided by Alibaba Cloud. This operation can be used to create custom templates.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateBundle

The operation that you want to perform. Set the value to CreateBundle.

DesktopType String Yes ecd.basic.large

The type of the desktop. Valid values:

  • ecd.graphics.2xlarge: Advanced Graphics
  • ecd.graphics.xlarge: Graphics
  • ecd.performance.2xlarge: Performance
  • ecd.advanced.xlarge: Advanced Office - B
  • ecd.advanced.large: Advanced Office - A
  • ecd.basic.large: Basic Office - B
  • ecd.basic.small: Basic Office - A
Note ecd.graphics is the GPU-accelerated desktop type. You can select ecd.graphics only when you use GPU-accelerated images.
ImageId String Yes m-4zfb6zj728hhr****

The ID of the image.

RegionId String Yes cn-hangzhou

The ID of the region.

RootDiskSizeGib Integer Yes 80

The size of the system disk. Unit: GiB.

The value of this parameter must be consistent with the system disk size provided by the cloud desktop type, which is specified by the DesktopType parameter. For more information, see Cloud desktop types.

UserDiskSizeGib.N RepeatList Yes 70

The size of data disk N. You can configure only one data disk. Unit: GiB.

The value of this parameter must be consistent with the data disk size provided by the cloud desktop type, which is specified by the DesktopType parameter. For more information, see Cloud desktop types.

Note The value of the UserDiskSizeGib parameter must be greater than that of the DataDiskSize parameter.
BundleName String No testBundleName

The name of the desktop template.

Description String No test

The description of the desktop template.

Language String No zh-CN

The language of the operating system. This parameter is available only for system images. Valid values:

  • zh-CN: Simplified Chinese
  • zh-HK: Traditional Chinese (Hong Kong)
  • en-US: English

Response parameters

Parameter Type Example Description
BundleId String b-cezrnfgecbich****

The ID of the desktop template.

RequestId String A90B77D3-261E-4AB2-A860-2FA2098D****

The ID of the request.

Examples

Sample requests

https://ecd.cn-hangzhou.aliyuncs.com/?Action=CreateBundle
&ImageId=m-4zfb6zj728hhr****
&DesktopType=ecd.basic.large
&RootDiskSizeGib=80
&UserDiskSizeGib.1=70
&<Common request parameters>

Sample success responses

XML format

<BundleIdResponse>
  <BundleId>b-cezrnfgecbich****</BundleId>
  <RequestId>A90B77D3-261E-4AB2-A860-2FA2098D****</RequestId>
</BundleIdResponse>

JSON format

{
    "BundleIdResponse": {
        "BundleId": "b-cezrnfgecbich****",
        "RequestId": "A90B77D3-261E-4AB2-A860-2FA2098D****"
    }
}