功能介绍:升级实例时费用查询
POST https://[endpoint].ctapi.ctyun.cn/v1/spuInst/describePrice/expandInst
Content-Type:application/json
请求体参数说明:
参数名 | 示例值 | 参数类型 | 是否必填 | 参数描述 |
---|---|---|---|---|
order | Object | 是 | 订单对象 | |
item | Object | 是 | 订单项对象 | |
resourceId | b8d6625d63e045e790af8ccfa573d955 | String | 是 | 资源Id |
itemConfig | Object | 是 | 订单项配置 | |
memSize | 16 | String | 否 | 内存大小(单机Single:1、2、4、8、16、32;主备Dual:2、4、8、16、32;集群单机ClusterSingle:16、32、64、128、256、512;集群主备cluster:16、32、64、128、256、512) |
edition | ClusterSingle | String | 是 | 版本类型 (可选值:单机版(Single)、双副本(Dual)、集群单副本(ClusterSingle) 集群双副本(cluster)) |
engineVersion | 2.8 | String | 是 | 引擎版本,支持:2.8、4.0、5.0 |
返回参数说明:
参数名 | 示例值 | 参数类型 | 参数描述 |
---|---|---|---|
message | success | String | 响应信息 |
statusCode | 800 | int | 响应状态码 |
returnObj | Object | 返回对象 | |
isSucceed | true | boolean | 是否成功 |
totalPrice | 3200.0 | String | 总价 |
finalPrice | 3200.0 | String | 最终价格 |
verifyStatusCode | 800 | 返回值状态码 | |
subOrderPrices | Object | 返回对象 | |
serviceTag | PAAS | String | 资源服务标签 |
orderItemPrices | Object | 订单项价格 | |
itemId | 646955254ed949dcb48932fd9641c1e6 | String | 订单项ID |
resourceType | DCS | String | 资源类型 |
请求示例:
POST https://[endpoint].ctapi.ctyun.cn/v1/spuInst/describePrice/expandInst
{
"order":{
"item": {
"itemConfig":{
"memSize":"64",
"edition":"ClusterSingle",
"engineVersion":"2.8"
},
"resourceId":"306828af7d5b456d97a3c05cec736747"
}
}
}
返回示例:
{
"statusCode": 800,
"message": null,
"returnObj": {
"isSucceed": true,
"totalPrice": "4290.41",
"finalPrice": "4290.41",
"subOrderPrices": [
{
"totalPrice": "4290.41",
"finalPrice": "4290.41",
"serviceTag": "PAAS",
"orderItemPrices": [
{
"itemId": "eba2938f104045ff9d806a8ad2c32b60",
"resourceType": "DCS",
"totalPrice": "4290.41",
"finalPrice": "4290.41"
}
]
}
],
"verifyStatusCode": 800
}
}