All Products
Search
Document Center

Elastic Desktop Service:CreateBundle

Last Updated:Oct 17, 2024

Creates a custom cloud computer template.

Operation description

Cloud computer templates include system templates and custom templates. A system template is the default template provided by Alibaba Cloud. You can call this operation to create a custom template.

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
ImageIdstringYes

The ID of the image.

m-4zfb6zj728hhr****
DesktopTypestringYes

The instance type of the cloud computers. You can call the DescribeBundles operation to query cloud computer templates and obtain the instance types supported by the cloud computers from the DesktopType response parameter.

Note If you want the template to use a non-GPU-accelerated image, you can only select a non-GPU-accelerated instance type. If you want the template to use a GPU-accelerated image, you can only select a GPU-accelerated instance type.
ecd.basic.large
RootDiskSizeGibintegerYes

The size of the system disk. Unit: GiB. The value of this parameter must be consistent with the system disk size supported by the cloud computer instance type. For more information, see Overview .

80
BundleNamestringNo

The name of the cloud computer template.

testBundleName
DescriptionstringNo

The description of the cloud computer template.

test
LanguagestringNo

The OS language. This parameter is available only for system images. Valid values:

  • zh-CN: Simplified Chinese
  • zh-HK: Traditional Chinese (Hong Kong)
  • en-US: American English
  • ja-JP: Japanese
zh-CN
UserDiskSizeGibarrayYes

The data disk sizes. You can configure only one data disk.

integerYes

The data disk size. You can configure only one data disk. Unit: GiB. The value of this parameter must be consistent with the data disk size supported by the cloud computer instance type. For more information, see Overview .

Note The value of the UserDiskSizeGib parameter in the template must be greater than the value of the DataDiskSize parameter in the image.
70
RootDiskPerformanceLevelstringNo

The performance level (PL) of the system disk. When the cloud computer instance type that is specified by the DesktopType parameter is set to a graphical instance type or instance type with a high clock speed, you can set the performance level of the disks. For more information about the differences among disks at different PLs, see Enhanced SSDs.

Valid values:

  • PL1

  • PL0

  • PL3

  • PL2

PL1
UserDiskPerformanceLevelstringNo

The PL of the data disk. When the cloud computer instance type that is specified by the DesktopType parameter is set to a graphical instance type or instance type with a high clock speed, you can set the performance level of the disks. For more information about the differences among disks at different PLs, see Enhanced SSDs.

Valid values:

  • PL1

  • PL0

  • PL3

  • PL2

PL1

Response parameters

ParameterTypeDescriptionExample
object

Schema of response.

BundleIdstring

The ID of the cloud computer template.

b-cezrnfgecbich****
RequestIdstring

The ID of the request.

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

Examples

Sample success responses

JSONformat

{
  "BundleId": "b-cezrnfgecbich****",
  "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
2021-10-28The request parameters of the API has changedView Change Details
2021-08-05Add OperationView Change Details