云硬盘订购询价v3
更新时间 2025-12-30 15:16:26
最近更新时间: 2025-12-30 15:16:26
接口功能介绍
- 创建单独付费云硬盘询价。
接口约束
无
URI
POST /v3/cloudVolume/describePrice
路径参数 无
Query参数
| 参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|---|
| regionId | 是 | String | 资源池ID。 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
请求参数
请求头header参数 无
请求体body参数
| 参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|---|
| billMode | 是 | String | 订购类型(仅创建单独付费云硬盘有效)。取值范围: - Cycle:包周期。 | ||
| cycleType | 否 | String | 周期类型(仅创建单独付费云电脑有效)。取值范围: - Month:按月。(仅订购类型为包周期类型有效) | ||
| cycleCnt | 否 | Integer | 周期数(仅创建单独付费云电脑有效)。取值范围: - 1-36。(仅订购类型为包周期类型有效) | ||
| diskType | 是 | String | 云硬盘类型(uhio-超高IO;hio-高IO;cio-普通IO) | ||
| count | 是 | Integer | 数量,范围:[1, 50] | ||
| volumeSize | 是 | Integer | 云硬盘大小(单位:GB),大于等于10 | ||
| encryption | 是 | Boolean | 是否加密,true表示为加密,false表示为不加密 |
响应参数
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| statusCode | Integer | 状态码。可能值: - 800:请求成功。 - 900:请求失败。 | ||
| error | String | 错误码。 | ||
| message | String | 提示信息。 | ||
| returnObj | Object | 返回数据对象 | returnObj | |
| 表 returnObj |
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| finalPrice | String | 最终价格。 | ||
| totalPrice | String | 总价格。 | ||
| subOrderPrices | Array of Objects | 价格子项。 | subOrderPrices | |
| isSucceed | Boolean | 是否成功。 | ||
| 表 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 | ||
| resourceType | String | 资源类别 | ||
| discountPrice | String | 折扣 |
枚举参数
无
请求示例
请求url
https://{host}?regionId=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
请求头header
无
请求体body
{
"billMode":"Cycle",
"cycleType":3,
"cycleCnt":1,
"diskType":"uhio",
"count":1,
"volumeSize":40,
"encryption":false
}
响应示例
{
"akInfo":"",
"statusCode":800,
"returnObj":{
"totalPrice":"4.0",
"finalPrice":"4.0",
"subOrderPrices":[{
"totalPrice":"4.0",
"finalPrice":"4.0",
"serviceTag":"BUSINESS_CPC",
"cycleCount":"1",
"orderItemPrices":[{
"itemId":"dadb51f3236c44f4ad6fe3d83c5677b6",
"ctyunName":"云电脑(政企版)",
"instanceCnt":"20.0",
"totalPrice":"4.0",
"finalPrice":"4.0",
"resourceType":"BUSINESS_CPC_EBS"
}],
"orderSumItemPrices":[{
"totalPrice":"4.0",
"finalPrice":"4.0",
"discountPrice":null,
"itemId":"dadb51f3236c44f4ad6fe3d83c5677b6",
"resourceType":"BUSINESS_CPC_EBS"
}]
}],
"isSucceed":true
}
}
状态码
请参考 状态码
错误码
请参考 错误码