You can call this operation to create a custom desktop template.

Description

Desktop templates include system templates and custom templates. System templates are default templates provided by Alibaba Cloud. The CreateBundle operation creates 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 desktop type. 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. The GPU-accelerated desktop type is used only when you use GPU-accelerated images to create cloud desktops.
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 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 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 This is description.

The description of the desktop template.

Response parameters

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

The ID of the desktop template.

RequestId String A90B77D3-261E-4AB2-A860-2FA2098D268A

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

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

JSON format

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

Error codes

For a list of error codes, visit the API Error Center.