变更云电脑规格v3
更新时间 2025-08-07 16:49:12
最近更新时间: 2025-08-07 16:49:12
接口功能介绍
- 适用于创建单独付费云电脑询价。- 新旧规格适用的系统类型、规格类型、处理器类型(XC型)必须相同。- 每次最多同时变更1个。
接口约束
无
URI
POST /v3/desktop/batch/modifySpec
路径参数
无
Query参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
regionId | 是 | String | 资源池ID。 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
请求参数
请求头header参数
无
请求体body参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
desktopOidList | 是 | Array of Strings | 云电脑ID列表,仅可设置一个。 | ||
templateOid | 是 | String | 规格模板ID |
响应参数
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
statusCode | Integer | 状态码。可能值: - 800:请求成功。 - 900:请求失败。 |
800 | |
error | String | 错误码。 | ECPC_1000 | |
message | String | 提示信息。 | OK. | |
returnObj | Object | 返回数据对象 | returnObj |
表 returnObj
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
finalPrice | String | 最终价格。 | ||
totalPrice | String | 总价格。 | ||
subOrderPrices | Array of Objects | 价格子项。 | subOrderPrices |
表 subOrderPrices
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
totalPrice | String | 总价格 | ||
finalPrice | String | 最终价格 | ||
cycleCount | String | 周期数 | ||
serviceTag | String | 产品类别 | ||
orderItemPrices | Array of Objects | 价格子项。 | orderItemPrices | |
orderSumItemPrices | Array of Objects | 汇总价格子项。 | orderSumItemPrices |
表 orderItemPrices
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
totalPrice | String | 总价格 | ||
finalPrice | String | 最终价格 | ||
itemId | String | 项id | ||
instanceCnt | String | 实例数量 | ||
ctyunName | String | 产品名称 | ||
resourceType | String | 资源类别 |
表 orderSumItemPrices
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
totalPrice | String | 总价格 | ||
finalPrice | String | 最终价格 | ||
itemId | String | 项id | ||
instanceCnt | String | 实例数量 | ||
ctyunName | String | 产品名称 | ||
resourceType | String | 资源类别 |
枚举参数
无
请求示例
请求url
无
请求头header
无
请求体body
{
"desktopOidList":["XXXXXXXXXXXXX6925"],
"templateOid":"dft-xxx"
}
响应示例
{
"statusCode":800,
"message":"OK.",
"returnObj":{
"totalPrice":95.1,
"finalPrice":95.1,
"orderItemPrices":[{
"totalPrice":95.1,
"finalPrice":95.1,
"serviceTag":"BUSINESS_CPC",
"cycleCount":1,
"orderItemPrices":[{
"itemId":"cfacabd2189348488c5d5dd70cd73c82",
"ctyunName":"云电脑(政企版)",
"instanceCnt":1.0,
"totalPrice":1.0,
"finalPrice":91.0,
"resourceType":"BUSINESS_CPC_VM"
}]
}],
"orderSumItemPrices":[{
"totalPrice":95.1,
"finalPrice":95.1,
"serviceTag":"BUSINESS_CPC",
"cycleCount":1,
"orderItemPrices":[{
"itemId":"cfacabd2189348488c5d5dd70cd73c82",
"ctyunName":"云电脑(政企版)",
"instanceCnt":1.0,
"totalPrice":1.0,
"finalPrice":91.0,
"resourceType":"BUSINESS_CPC_VM"
}]
}]
}
}
状态码
请参考 状态码
错误码
请参考 错误码