Modifies all parameters of a custom cloud computer template.
Operation description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ecd:ModifyTemplate |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateId |
string |
Yes |
The template ID. |
b-0caoeogs88y***** |
| TemplateName |
string |
No |
The name of the template. The name must meet the following requirements:
|
MyCloudComputerTemplate001 |
| Description |
string |
No |
The instance name. |
wework-aim-test |
| SystemDiskSize |
integer |
No |
The description of the template. The description must meet the following requirements:
|
testDescription |
| SystemDiskPerformanceLevel |
string |
No |
The size of the system cloud disk. Unit: GiB. Valid values: 40 to 500, in increments of 10 GiB. Note
The system cloud disk size cannot be smaller than the size of the configured image. Valid values:
|
80 |
| DataDiskList |
array<object> |
No |
The type of the system cloud disk. Note
Only high frequency and GPU-accelerated cloud computer specifications support ESSD cloud disks. |
AutoPL |
|
object |
No |
|||
| PerformanceLevel |
string |
No |
The performance level of the data cloud disk. Default value: Valid values:
|
AutoPL |
| Size |
integer |
No |
The size of the data cloud disk. Unit: GiB. Valid values: 40 to 2040. The value must be a multiple of 10. |
40 |
| ImageId |
string |
No |
The system cloud disk performance level. |
m-gx2x1dhsmusr2**** |
| PolicyGroupId |
string |
No |
The cloud computer image ID. You can query the ID on the image management page. System images, custom images, and other image types are supported. |
m-gx2x1dhsmusr2**** |
| DefaultLanguage |
string |
No |
The ID of the global policy. Valid values:
|
pg-gx2x1dhsmthe9**** |
| TimerGroupId |
string |
No |
The default language that is set when the cloud computer starts. This parameter takes effect only when a system image is used to create the cloud computer. |
zh-CN |
| ResourceGroupId |
string |
No |
The configuration group ID. |
bcc-dweha***** |
| ResourceTagList |
array<object> |
No |
The resource group ID. |
rg-a5fqjjqaejt*** |
|
object |
No |
|||
| Key |
string |
No |
The tag key. |
department |
| Value |
string |
No |
The tag value. |
design |
| RegionConfigList |
array<object> |
No |
The cloud computer tags in key-value format. You can specify up to 20 tags. |
|
|
object |
No |
|||
| OfficeSiteId |
string |
No |
The office network ID. |
cn-hangzhou+dir-709**** |
| RegionId |
string |
No |
The region ID. You can call DescribeRegions to query the list of regions supported by Elastic Desktop Service. |
cn-beijing |
| ResourceInstanceType |
string |
No |
The cloud computer specification ID. |
eds.enterprise_office.8c16g |
| SnapshotPolicyId |
string |
No |
The ID of the automatic snapshot policy. |
sp-35fvn8m2***** |
| SubnetId |
string |
No |
The subnet ID. |
vsw-adjrehad1**** |
| VirtualNodePoolId |
string |
No |
vnp-0bz55ic******* |
|
| VolumeEncryptionEnable |
boolean |
No |
Specifies whether to enable disk encryption. Valid values:
|
false |
| VolumeEncryptionKey |
string |
No |
The ID of the KMS key used when disk encryption is enabled. |
a7b3c0c8-b3a2-4876-b1cc-116dddc9**** |
| SiteConfigList |
array<object> |
No |
The region-specific template configurations. You can specify multiple configurations. The configuration that matches the specific region is used. Note
You can specify configurations for up to 20 regions. |
|
|
object |
No |
|||
| AppRuleId |
string |
No |
The application control policy ID. |
bwr-5a5371e0******* |
| SiteId |
string |
No |
The site name. |
mainland |
| ChargeType |
string |
No |
The site configuration management. Valid values:
|
PrePaid |
| Period |
integer |
No |
The billing method of the cloud computer. |
PrePaid |
| PeriodUnit |
string |
No |
The subscription duration of the subscription cloud computer. This parameter takes effect and is required only when
Valid values:
|
1 |
| AutoPay |
boolean |
No |
The unit of the subscription duration for the subscription billing method. |
Month |
| AutoRenew |
boolean |
No |
Specifies whether automatic payment is enabled for the subscription order. |
|
| UserDuration |
integer |
No |
Specifies whether to enable auto-renewal for the subscription cloud computer. Valid values:
|
120 |
| PostPaidAfterUsedUp |
boolean |
No |
The duration plan for a single user. |
120 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
BaseResult |
||
| Code |
string |
The execution result. A value of |
success |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Message |
string |
The error message. This parameter is not returned when Code is |
success |
| RequestId |
string |
The request ID. |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
| Success |
boolean |
Indicates whether the operation was successful. Valid values: true: The operation was successful. false: The operation failed. |
true |
Examples
Success response
JSON format
{
"Code": "success",
"HttpStatusCode": 200,
"Message": "success",
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.