创建计算增强型云电脑询价v3
更新时间 2025-09-24 10:34:37
最近更新时间: 2025-09-24 10:34:37
接口功能介绍
- 创建单独付费计算增强型云电脑询价。
接口约束
无
URI
POST /v3/ecs/describePrice
路径参数 无
Query参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
regionId | 是 | String | 资源池ID。 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
请求参数
请求头header参数 无
请求体body参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
billMode | 是 | String | 订购类型(仅创建单独付费计算增强型云电脑有效)。取值范围: - Cycle:包周期。 | ||
cycleType | 否 | String | 周期类型(仅创建单独付费云电脑有效)。取值范围: - Month:按月。(仅订购类型为包周期类型有效) | ||
cycleCnt | 否 | Integer | 周期数(仅创建单独付费云电脑有效)。取值范围: - 1-36。(仅订购类型为包周期类型有效) | ||
autoPay | 否 | Boolean | 是否自动支付(仅创建单独付费云电脑有效),默认false。取值范围: - true:是。(仅订购类型为包周期类型有效,需账号有足够金额) - false:否。(仅订购类型为包周期类型有效) | ||
templateOid | 是 | String | 规格模板ID | ||
processorType | 否 | String | 处理器类型。创建XC型规格时必填。取值范围: - kp:鲲鹏。 - hg:海光。 | ||
imageOid | 是 | String | 镜像ID | ||
subnetOid | 是 | String | VPC子网ID | ||
securityGroupOid | 是 | String | 安全组ID | ||
sysDiskType | 是 | String | 系统盘类型(hio-高IO) | ||
sysDiskSize | 是 | Integer | 系统盘大小(单位:GB) - 镜像系统盘大小(创建单独付费云电脑,不支持自定义大小) - [max{镜像系统盘大小,120},200]需为10的倍数(创建资源包云电脑,支持自定义大小) |
响应参数
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
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
无
响应示例
{
"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"
}]
}]
}
}
状态码
请参考 状态码
错误码
请参考 错误码