All Products
Search
Document Center

WUYING Workspace:CreateBundle

Last Updated:Mar 26, 2024

Creates a custom template.

Operation description

Desktop templates are categorized into system templates and custom templates. System templates are the templates provided by Alibaba Cloud. You can call this operation to create a custom template.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
ecd:CreateBundleWRITE
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The ID of the region.

cn-hangzhou
ImageIdstringYes

The ID of the image.

m-4zfb6zj728hhr****
DesktopTypestringYes

The type of the cloud desktop. You can call the DescribeBundles operation to query the cloud desktop templates and obtain the supported desktop type from the value of the DesktopType parameter.

Note You can select GPU-accelerated desktop types only when you use GPU-accelerated images.
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 desktop type. For more information, see Cloud desktop types.

80
BundleNamestringNo

The name of the desktop template.

testBundleName
DescriptionstringNo

The description of the desktop template.

test
LanguagestringNo

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

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

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 supported by the cloud desktop type. For more information, see Cloud desktop types.

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

The performance level (PL) of the system disk. If the cloud desktop type is Graphics or High Frequency, you can set the PL of the system disk. Valid values:

  • PL0
  • PL1
  • PL2
  • PL3

For more information about the differences between disks at different PLs, see Enhanced SSDs.

PL1
UserDiskPerformanceLevelstringNo

The PL of the data disk. If the cloud desktop type is Graphics or High Frequency, you can set the PL of the data disk. Valid values:

  • PL0
  • PL1
  • PL2
  • PL3

For more information about the differences between disks at different PLs, see Enhanced SSDs.

PL1

Response parameters

ParameterTypeDescriptionExample
object

The ID of the desktop template.

BundleIdstring

The ID of the desktop 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 changedsee changesets
Change itemChange content
Input ParametersThe request parameters of the API has changed.
    Added Input Parameters: RootDiskPerformanceLevel
    Added Input Parameters: UserDiskPerformanceLevel
2021-08-05Add Operationsee changesets