查詢續訂MongoDB實例的價格
更新時間 2023-08-29 15:13:48
最近更新時間: 2023-08-29 15:13:48
分享文章
接口功能介紹
調用queryRenewOrderPriceForMongoDB接口查詢續訂MongoDB實例的價格。
接口約束
無
URI
POST /v1/extApi/queryRenewOrderPriceForMongoDB
路徑參數
無
Query參數
無
請求參數
請求頭header參數
無
請求體body參數
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| cycleCount | 是 | String | 訂購周期,值需大于零,訂購時長最長不能超過384個月 | ||
| cycleType | 是 | String | 訂購類型,3表示按月訂購,5表示按一年訂購,6表示按兩年訂購、7表示按三年訂購。cycleCnt屬性為1,cycleType取值為3 表示訂購1個月 | ||
| accessKey | 是 | String | 資源池ak | ||
| securityKey | 是 | String | 資源池sk | ||
| resourceIds | 是 | String[] | 實例id數組 |
響應參數
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| statusCode | 是 | Integer | 響應碼 取值范圍:800為成功,900為失敗 | 800 | |
| message | 是 | String | 響應信息 | 查詢續訂MongoDB實例的價格成功 | |
| returnObj | 是 | Object | 返回對象 |
表returnObj
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| totalPrice | 是 | Integer | 訂單總價 | ||
| subOrderPrices | 是 | Object[] | 子訂單價格數組 | subOrderPrices | |
| finalPrice | 是 | Integer | 訂單最終價格 | ||
| isSucceed | 是 | Boolean |
表subOrderPrices
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| totalPrice | 是 | Integer | 訂單總價 | ||
| serviceTag | 是 | Object[] | 子訂單價格數組 | subOrderPrices | |
| finalPrice | 是 | Integer | 訂單最終價格 | ||
| orderItemPrices | 是 | Object[] | orderItemPrices |
表orderItemPrices
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| itemId | 是 | String | 訂單總價 | ||
| totalPrice | 是 | Integer | 子訂單價格 | ||
| finalPrice | 是 | Integer | 子訂單最終價格 | ||
| resourceType | 是 | String | 資源類型 |
請求示例
請求頭header
無
請求體body
{
"cycleCount":"1",
"cycleType":"3",
"accessKey":"4a4bdc57e06542199b5f98d4cd107be2",
"securityKey":"5566ddcc9b1646c6b77a0eaeff1c8763",
"resourceIds":[
"7fa7256174df4016adee9bfb8dbb5470"
]
}
響應示例
{
"statusCode": 800,
"message": "查詢續訂MongoDB實例的價格成功",
"returnObj": {
"totalPrice": 513.0,
"subOrderPrices": [
{
"totalPrice": 513.0,
"serviceTag": "PAAS",
"finalPrice": 513.0,
"orderItemPrices": [
{
"itemId": "fde0496ddf2d40a595bb28faa7740d7b",
"totalPrice": 417.0,
"finalPrice": 417.0,
"resourceType": "DOCBASE"
},
{
"itemId": "36b5e0e287614777b19dd8ed40f27142",
"totalPrice": 30.0,
"finalPrice": 30.0,
"resourceType": "MONGODB_EBSC"
},
{
"itemId": "b89428039ca14cd3b95edd04c3b510a2",
"totalPrice": 66.0,
"finalPrice": 66.0,
"resourceType": "MONGODB_BACKUP"
}
]
}
],
"finalPrice": 513.0,
"isSucceed": true
}
}
狀態碼
| 狀態碼 | 描述 |
|---|---|
| 800 | 表示請求成功 |
| 900 | 表示請求失敗 |
錯誤碼
無