变更云电脑的实例规格,并扩容云电脑的系统盘和数据盘。
接口说明
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, andUserDiskSizeGib. 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.
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ecd:ModifyDesktopSpec |
update |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
地域 ID。您可以调用 DescribeRegions 查询最新的地域列表。 |
cn-hangzhou |
| DesktopId |
string |
否 |
云电脑 ID。 |
ecd-4543qyik164a4**** |
| DesktopType |
string |
是 |
目标实例规格。您可以调用 DescribeDesktopTypes 查询云电脑支持的实例规格。 |
eds.general.2c8g |
| RootDiskSizeGib |
integer |
否 |
变更后的系统盘大小。单位:GiB。取值范围:80~500 GiB,且必须是 10 的整数倍。 |
80 |
| UserDiskSizeGib |
integer |
否 |
变更后的数据盘大小。单位:GiB。
|
100 |
| AutoPay |
boolean |
否 |
是否自动付费。 默认值:true。取值范围:
枚举值:
|
false |
| UserDiskPerformanceLevel |
string |
否 |
数据盘的性能等级(PL)。默认值:PL0。 取值范围:
枚举值:
|
PL0 |
| PromotionId |
string |
否 |
促销活动 ID。 |
500033080110596 |
| ResourceSpecs |
array<object> |
否 |
资源规格模板数组。 |
|
|
object |
否 |
The resource specification template. |
||
| DesktopId |
string |
否 |
云电脑 ID。 |
ecd-4543qyik164a4**** |
| RootDiskSizeGib |
integer |
否 |
目标系统盘大小。取值范围:80~500 GiB,且必须是 10 的整数倍。 |
80 |
| UserDiskSizeGib |
integer |
否 |
目标数据盘大小。取值范围:80~500 GiB,且必须是 10 的整数倍。 |
20 |
| ResourceType |
string |
否 |
资源类型。 说明
非包年包月云电脑可不传该参数。 枚举值:
|
DesktopMonthPackage |
| ResellerOwnerUid |
integer |
否 |
转售模式的资源归属用户 ID,非转售模式无需填写该参数。 |
1422724566551XXX |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of response. |
||
| OrderId |
string |
订单 ID。 |
123456789 |
| RequestId |
string |
请求 ID。 |
1CBAFFAB-B697-4049-A9B1-67E1FC5F**** |
| OrderIds |
array |
订单 ID 数组。 |
|
|
integer |
订单 ID。 |
123456789 |
示例
正常返回示例
JSON格式
{
"OrderId": "123456789",
"RequestId": "1CBAFFAB-B697-4049-A9B1-67E1FC5F****",
"OrderIds": [
123456789
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。