All Products
Search
Document Center

Elastic Desktop Service:ModifyDesktopSpec

Last Updated:Jan 05, 2026

Changes the instance type of a cloud computer and scales up the disks of the cloud computer.

Operation description

Changing the configurations of a cloud computer includes changing the instance type of the cloud computer and scaling up the disks of the cloud computer.

  • Before you change the configurations of a cloud computer, you must understand the instance types and disk sizes supported by cloud computers. For more information, see Cloud computer types. You can call the DescribeDesktopTypes operation to query the instance types supported by cloud computers.

  • You must change at least one of the following configurations: instance type, system disk size, and data disk size of the cloud computer. You must specify at least one of the following parameters: DesktopType, RootDiskSizeGib, and UserDiskSizeGib. Take note of the following items:

    • The instance type of a cloud computer includes the configurations of vCPUs, memory, and GPUs. You can only change an instance type to another. You cannot change only one of the configurations.
    • You cannot change a cloud computer between the General Office type and the non-General Office type. You cannot yet change a cloud computer between the Graphics type and the non-Graphics type.
    • The system disk and data disks of a cloud computer can only be scaled up and cannot be scaled down.
    • If the billing method of the cloud computer is subscription, the system calculates the price difference based on the configuration difference between the original cloud computer and the new cloud computer. You must make up for the price difference or receive a refund for the price difference.
    • We recommend that you do not change the configurations of a cloud computer twice within 5 minutes.
    • When you change the configurations of a cloud computer, the cloud computer must be in the Stopped state.
  • After you change the configurations of a cloud computer, the personal data on the cloud computer is not affected.

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

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:
    • For mandatory resource types, indicate with a prefix of * .
    • 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:ModifyDesktopSpecupdate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID. You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou
DesktopIdstringYes

The ID of a cloud computer.

ecd-4543qyik164a4****
DesktopTypestringYes

The destination instance type. You can call the DescribeDesktopTypes operation to query the instance types supported by cloud computers.

eds.general.2c8g
RootDiskSizeGibintegerNo

The size of the new system disk. Unit: GiB. Valid values: 80 to 500 GiB. The value must be a multiple of 10.

80
UserDiskSizeGibintegerNo

The destination data disk size. Unit: GiB.

  • The data disk size of a non-graphical cloud computer ranges from 20 to 1020 GiB and must be a multiple of 10.
  • The data disk size of a graphical cloud computer ranges from 40 to 1020 GiB and must be a multiple of 10.
100
AutoPaybooleanNo

Specifies whether to enable the auto-payment feature.

Default value: true. Valid values:

  • true: enables the auto-payment feature.

    Make sure that you have sufficient balance in your Alibaba Cloud account. Otherwise, an exception occurs on your order.

  • false: disables the auto-payment feature. In this case, an order is generated, and no payment is automatically made.

    You can log on to the Elastic Desktop Service console and complete the payment based on the order ID on the Orders page.

false
UserDiskPerformanceLevelstringNo

The performance level (PL) of the data disk. Default value: PL0.

Valid values:

  • PL1

  • PL0

  • PL3

  • PL2

PL0
PromotionIdstringNo

The ID of the promotional activity.

500033080110596
ResourceSpecsarray<object>No

The array of resource specification templates.

objectNo

The resource specification template.

DesktopIdstringNo

The ID of the cloud computer.

ecd-4543qyik164a4****
RootDiskSizeGibintegerNo

The target size of the system disk. Valid values: 80-500 GiB. The value must be a multiple of 10.

80
UserDiskSizeGibintegerNo

The target size of the data disk. Valid values: 80-500 GiB. The value must be a multiple of 10.

20
ResourceTypestringNo

The resource type.

Note This parameter is optional for non-subscribed cloud computers.
Enumeration Value:
  • DesktopMonthPackage: DesktopMonthPackage.
DesktopMonthPackage

Response parameters

ParameterTypeDescriptionExample
object

Schema of response.

OrderIdstring

The ID of the order.

123456789
RequestIdstring

The ID of the request.

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

The array of order IDs.

orderIdslong

The order ID.

123456789

Examples

Sample success responses

JSONformat

{
  "OrderId": 123456789,
  "RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
  "OrderIds": [
    123456789
  ]
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-12-02The internal configuration of the API is changed, but the call is not affectedView Change Details
2024-06-17The request parameters of the API has changed. The response structure of the API has changedView Change Details
2023-12-12The internal configuration of the API is changed, but the call is not affectedView Change Details
2021-08-19The request parameters of the API has changedView Change Details
2021-08-19The request parameters of the API has changedView Change Details