Modifies a desktop template.

Description

Only custom desktop templates can be modified.

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 ModifyBundle

The operation that you want to perform. Set the value to ModifyBundle.

BundleId String Yes b-2g65ljy4291vl****

The ID of the desktop template.

RegionId String Yes cn-hangzhou

The ID of the region.

ImageId String No m-aea3oaww001np****

The ID of the new image. The new image must meet the following requirements:

  • The new image must be in the Available state.
  • The operating system of the new image must be the same as that of the original image.
  • The required disk size for the new image cannot be greater than that for the original image.
  • The GPU type of the new image must be the same as that of the original image.
BundleName String No newName

The name of the new desktop template.

Description String No newDescription

The description of the new desktop template.

Language String No zh-CN

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

  • zh-CN: Simplified Chinese
  • zh-HK: Traditional Chinese (Hong Kong)
  • en-US: English

Response parameters

Parameter Type Example Description
RequestId String 4636DBE0-BBB4-4076-8B8E-94D21A9A****

The ID of the request.

Examples

Sample requests

https://ecd.cn-hangzhou.aliyuncs.com/?Action=ModifyBundle
&BundleId=b-2g65ljy4291vl****
&RegionId=cn-hangzhou
&ImageId=m-aea3oaww001np****
&<Common request parameters>

Sample success responses

XML format

<ModifyBundleResponse>
  <RequestId>4636DBE0-BBB4-4076-8B8E-94D21A9A****</RequestId>
</ModifyBundleResponse>

JSON format

{
    "ModifyBundleResponse": {
        "RequestId": "4636DBE0-BBB4-4076-8B8E-94D21A9A****"
    }
}