Creates a custom WUYING Workspace template. A WUYING Workspace template is a collection of WUYING Workspace configurations that simplifies and accelerates the creation of WUYING Workspaces.
Operation description
Note the following when you call this operation:
-
Most template parameters are optional. Alibaba Cloud does not validate the existence or validity of parameter values during template creation. The values are validated only when you use the template to create an instance.
-
If you create a WUYING Workspace in a region that is different from the region specified for a parameter in the template, that parameter setting is ignored.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecd:CreateTemplate |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateName |
string |
Yes |
The name of the template. The name must meet the following requirements:
|
我的云电脑模板001 |
| Description |
string |
No |
The description of the template. The description must meet the following requirements:
|
设计部模板 |
| ProductType |
string |
No |
Product type. Set this parameter to Valid values:
|
CloudDesktop |
| BizType |
string |
No |
Note
This parameter is not publicly available. Valid values:
|
1 |
| SystemDiskSize |
integer |
No |
The size of the system disk. Unit: GiB. Valid values: 40 to 500. The value must be a multiple of 10. Note
The system disk size cannot be smaller than the size of the image. |
80 |
| SystemDiskPerformanceLevel |
string |
No |
The performance level of the system disk. Note
Only WUYING Workspace instances that have high-frequency CPUs or GPUs support Enhanced SSDs (ESSDs). Valid values:
|
AutoPL |
| DataDiskList |
array<object> |
No |
The size and configuration of the data disk. |
|
|
object |
No |
|||
| Size |
integer |
No |
The size of the data disk. Unit: GiB. Valid values: 40 to 2040. The value must be a multiple of 10. Important For an ESSD, a larger capacity provides a higher performance level. For example, you can select PL2 for a disk larger than 460 GiB. Higher performance levels result in higher costs. Select a performance level for the ESSD as needed. |
40 |
| PerformanceLevel |
string |
No |
The performance level of the data disk. The default value is |
AutoPL |
| ImageId |
string |
No |
The ID of the WUYING Workspace image. You can find the image ID on the Image Management page. Operating system (OS) images and custom images are supported. |
desktopimage-windows-server-2022-64-asp |
| DefaultLanguage |
string |
No |
The default language of the OS. This parameter takes effect only when you create a WUYING Workspace from an OS image. |
zh-CN |
| PolicyGroupId |
string |
No |
The ID of the policy group. |
pg-8hlryfn331****** |
| TimerGroupId |
string |
No |
The ID of the configuration group. |
ccg-0caoeogrk9m5**** |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-4knxmfneq1e****** |
| ResourceTagList |
array<object> |
No |
The tags of the WUYING Workspace. You can specify up to 20 tags. A tag is a key-value pair. |
|
|
object |
No |
|||
| Key |
string |
No |
The key of the tag. |
department |
| Value |
string |
No |
The value of the tag. |
design |
| RegionConfigList |
array<object> |
No |
The configurations of the template for specific regions. You can specify configurations for multiple regions. When you use the template to create a workspace, the configuration for the region where the workspace resides is used. Note
You can specify configurations for up to 20 regions. |
|
|
object |
No |
|||
| RegionId |
string |
No |
The ID of the region. To obtain the regions that support WUYING Workspace, call the DescribeRegions operation. |
cn-hangzhou |
| SnapshotPolicyId |
string |
No |
The ID of the automatic snapshot policy. |
sp-35fvn8m21pnx2**** |
| ResourceInstanceType |
string |
No |
The ID of the Elastic Desktop Service instance type. |
eds.enterprise_office.8c16g |
| VolumeEncryptionEnable |
boolean |
No |
Specifies whether to enable disk encryption. Valid values:
|
false |
| VolumeEncryptionKey |
string |
No |
The ID of the Key Management Service (KMS) key that is used for disk encryption. This parameter is required only if you set `VolumeEncryptionEnable` to `true`. You can call the ListKeys operation to obtain the key ID. |
a7b3c0c8-b3a2-4876-b1cc-********* |
| OfficeSiteId |
string |
No |
The ID of the office network. |
cn-hangzhou+dir-709****** |
| SubnetId |
string |
No |
The ID of the vSwitch. |
vsw-bp1yiu********** |
| SiteConfigList |
array<object> |
No |
Region configuration management |
|
|
object |
No |
|||
| SiteId |
string |
No |
The ID of the site. Valid values:
|
mainland |
| AppRuleId |
string |
No |
The ID of the application control policy. |
bwr-5a5371e0db954d******** |
| ChargeType |
string |
No |
||
| Period |
integer |
No |
||
| PeriodUnit |
string |
No |
||
| AutoPay |
boolean |
No |
||
| AutoRenew |
boolean |
No |
||
| UserDuration |
integer |
No |
||
| PostPaidAfterUsedUp |
boolean |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PlainResult<string> |
||
| Data |
string |
The ID of the template. |
b-0cc7rx533***** |
| Success |
boolean |
Indicates whether the request was successful. |
True |
| Code |
string |
The status code. A value of |
success |
| Message |
string |
The result of the template creation operation. |
success |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The ID of the request. |
791CC0D3-1A38-573B-8F5F-******** |
Examples
Success response
JSON format
{
"Data": "b-0cc7rx533*****",
"Success": true,
"Code": "success",
"Message": "success",
"HttpStatusCode": 200,
"RequestId": "791CC0D3-1A38-573B-8F5F-********"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.