查詢Postgresql實例續費的費用
更新時間 2022-11-28 23:08:23
最近更新時間: 2022-11-28 23:08:23
分享文章
接口描述
續訂詢價
接口約束
無
URI
POST /v1/eop/renew-order-price
請求參數
請求體body參數
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| cycleType | 是 | String | 取值范圍:3表示按月訂購,5表示按一年訂購,6表示按兩年訂購、7表示按三年訂購。與cycleCount配合使用,cycleCount屬性為1,cycleType取值為3 表示訂購1個月。 | 3 | |
| cycleCount | 是 | Integer | 續訂周期數量。 2表示續訂2個月(值需大于零,不超過384個月) | 1 | |
| resourceIds | 是 | Array | String數組,主虛擬資源ID(批量續訂時資源不能超過10個)可通過【根據主訂單id查詢訂單詳情】接口返回的masterResourceId字段獲取 | [ "48cd3a5e9b964657a1f31c58a8b98ae4"] |
響應參數
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| statusCode | Integer | 狀態碼 | 800 | |
| message | String | 消息提示 | SUCCESS | |
| returnObj | Object | 價格明細 | PriceDetail |
PriceDetail
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| isSucceed | Boolean | 詢價請求是否成功 | true | |
| totalPrice | BigDecimal | 訂單總價 | 542.0 | |
| finalPrice | BigDecimal | 訂單最終價格 | 542.0 | |
| subOrderPrices | Array | 子訂單明細 | ||
| SubOrderPrice |
SubOrderPrice
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| totalPrice | BigDecimal | 子訂單總價 | 462.0 | |
| finalPrice | BigDecimal | 子訂單最終價格 | 462.0 | |
| serviceTag | String | 服務平臺 | PAAS | |
| orderItemPrices | Array | 訂單項價格 | OrderItemPrice |
OrderItemPrice
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| itemId | String | 訂單項ID | "1daaeb363cc949929cfd29745a6750ce" | |
| resourceType | String | 資源名稱 | PGSQL_VM | |
| totalPrice | BigDecimal | 商品總價 | 462.0 | |
| finalPrice | BigDecimal | 最終價格 | 462.0 |
請求示例
/v1/eop/renew-order-price
請求體body
{
? ?"cycleType":3,
? ?"cycleCount":1,
? ?"resourceIds":[
? ? ? ?"dc7af3591eff44dd800ea0cbce23d917"
? ]
}
響應示例
{
? ?"message": "SUCCESS",
? ?"returnObj": [
? ? ? {
? ? ? ? ? ?"isSucceed": true,
? ? ? ? ? ?"totalPrice": 542.0,
? ? ? ? ? ?"finalPrice": 542.0,
? ? ? ? ? ?"subOrderPrices": [
? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ?"totalPrice": 542.0,
? ? ? ? ? ? ? ? ? ?"finalPrice": 542.0,
? ? ? ? ? ? ? ? ? ?"serviceTag": "PAAS",
? ? ? ? ? ? ? ? ? ?"orderItemPrices": [
? ? ? ? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? ? ? ? ?"itemId": "a0782b8992fe436cb497f7ee7c162a2c",
? ? ? ? ? ? ? ? ? ? ? ? ? ?"resourceType": "PGSQL_VM",
? ? ? ? ? ? ? ? ? ? ? ? ? ?"totalPrice": 462.0,
? ? ? ? ? ? ? ? ? ? ? ? ? ?"finalPrice": 462.0
? ? ? ? ? ? ? ? ? ? ? },
? ? ? ? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? ? ? ? ?"itemId": "5a9868068fe941ea8d81a38c97f36e06",
? ? ? ? ? ? ? ? ? ? ? ? ? ?"resourceType": "PGSQL_EBSC",
? ? ? ? ? ? ? ? ? ? ? ? ? ?"totalPrice": 50.0,
? ? ? ? ? ? ? ? ? ? ? ? ? ?"finalPrice": 50.0
? ? ? ? ? ? ? ? ? ? ? },
? ? ? ? ? ? ? ? ? ? ? {
? ? ? ? ? ? ? ? ? ? ? ? ? ?"itemId": "1daaeb363cc949929cfd29745a6750ce",
? ? ? ? ? ? ? ? ? ? ? ? ? ?"resourceType": "PGSQL_BACKUP",
? ? ? ? ? ? ? ? ? ? ? ? ? ?"totalPrice": 30.0,
? ? ? ? ? ? ? ? ? ? ? ? ? ?"finalPrice": 30.0
? ? ? ? ? ? ? ? ? ? ? }
? ? ? ? ? ? ? ? ? ]
? ? ? ? ? ? ? }
? ? ? ? ? ]
? ? ? }
? ],
? ?"statusCode": 800
}
錯誤碼
訪問ErrorCodes說明文檔查看更多錯誤碼。