查詢MongoDB實例擴容的價格
更新時間 2023-08-29 15:13:52
最近更新時間: 2023-08-29 15:13:52
分享文章
接口功能介紹
調用queryUpgradeOrderPriceForMongoDB接口查詢MongoDB實例擴容的價格。
接口約束
無
URI
POST /v1/extApi/queryUpgradeOrderPriceForMongoDB
路徑參數
無
Query參數
無
請求參數
請求頭header參數
無
請求體body參數
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| cpuNum | 是 | String | cpu核數 | ||
| memSize | 是 | String | 內存容量 | ||
| engineVersion | 是 | String | 引擎版本 | ||
| instanceType | 是 | String | 實例類型,單機版(Single)高級版(Senior) | ||
| resourceId | 是 | String | 實例id | ||
| accessKey | 是 | String | 資源池ak | ||
| securityKey | 是 | String | 資源池sk |
響應參數
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| statusCode | 是 | Integer | 響應碼 取值范圍:800為成功,900為失敗 | 800 | |
| message | 是 | String | 響應信息 | 查詢MongoDB實例擴容的價格成功 | |
| returnObj | 是 | Object | 返回對象 |
表returnObj
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| totalPrice | 是 | Float | 訂單總價 | ||
| subOrderPrices | 是 | Object[] | 子訂單價格數組 | subOrderPrices | |
| usedDiscounts | 是 | String[] | |||
| succeed | 是 | Boolean | |||
| finalPrice | 是 | Float | 訂單最終價格 | ||
| verifyStatusCode | 是 | Float | 狀態碼 | ||
| isSucceed | 是 | Boolean |
表subOrderPrices
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| cycleType | 是 | Integer | |||
| totalPrice | 是 | Float | 訂單總價 | ||
| serviceTag | 是 | Object[] | 子訂單價格數組 | subOrderPrices | |
| finalPrice | 是 | Float | 訂單最終價格 | ||
| orderItemPrices | 是 | Object[] | orderItemPrices |
表orderItemPrices
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| itemId | 是 | String | 訂單總價 | ||
| totalPrice | 是 | Float | 子訂單價格 | ||
| finalPrice | 是 | Float | 子訂單最終價格 | ||
| resourceType | 是 | String | 資源類型 |
請求示例
請求頭header
無
請求體body
{
"cpuNum":"4",
"memSize":"8",
"engineVersion":"WiredTiger 4.0",
"instanceType":"Single",
"resourceId":"ce28bdce45e64aa0808ead6e39a29314",
"accessKey":"4a4bdc57e06542199b5f98d4cd107be2",
"securityKey":"5566ddcc9b1646c6b77a0eaeff1c8763"
}
響應示例
{
"statusCode": 800,
"message": "查詢MongoDB實例擴容的價格成功",
"returnObj": {
"totalPrice": 84.33,
"usedDiscounts": [],
"succeed": true,
"subOrderPrices": [
{
"cycleType": 1,
"totalPrice": 84.33,
"serviceTag": "PAAS",
"finalPrice": 84.33,
"orderItemPrices": [
{
"itemId": "b597226c09ef4ee988d562665726ed9e",
"totalPrice": 84.33,
"finalPrice": 84.33,
"resourceType": "DOCBASE"
}
]
}
],
"finalPrice": 84.33,
"verifyStatusCode": 800,
"isSucceed": true
}
}
狀態碼
| 狀態碼 | 描述 |
|---|---|
| 800 | 表示請求成功 |
| 900 | 表示請求失敗 |
錯誤碼
無