變配詢價
更新時間 2024-03-29 09:57:17
最近更新時間: 2024-03-29 09:57:17
分享文章
接口功能介紹
變配詢價。
接口約束
無。
URI
POST /v4/eip/query-modify-price
請求參數
請求體body參數
| 名字 | 類型 | 是否必選 | 描述 | 示例 |
|---|---|---|---|---|
| clientToken | String | 是 | 客戶端存根,用于保證訂單冪等性。要求單個云平臺賬戶內唯一 | xxx |
| regionID | String | 是 | 資源池 ID | xxxxxxxx |
| projectID | String | 否 | 企業項目 ID,默認為"0" | '0' |
| eipID | String | 是 | eip id | eip-xxxx |
| bandwidth | Integer | 是 | 彈性 IP 帶寬 | 10 |
響應參數
| 參數 | 參數類型 | 說明 | 示例 |
|---|---|---|---|
| statusCode | Integer | 返回狀態碼(800為成功,900為失敗) | 800 |
| message | String | statusCode為900時的錯誤信息; statusCode為800時為success, 英文 | success |
| description | String | statusCode為900時的錯誤信息; statusCode為800時為成功, 中文 | 成功 |
| errorCode | String | statusCode為900時為業務細分錯誤碼,三段式:product.module.code; statusCode為800時為SUCCESS | SUCCESS |
| returnObj | Object | 業務數據 | 見下表 |
表 returnObj
| 參數名 | 類型 | 示例值 | 說明 |
|---|---|---|---|
| totalPrice | Float | 總價格 | 336.0 |
| discountPrice | Float | 折后價格,云主機相關產品有 | 225.3 |
| finalPrice | Float | 最終價格 | 225.3 |
| subOrderPrices | Array of Objects | 子訂單價格信息 | 見下表 |
表 subOrderPrices
| 參數名 | 類型 | 示例值 | 說明 |
|---|---|---|---|
| serviceTag | String | 服務類型 | OVMS |
| totalPrice | Float | 子訂單總價格 | 336.0 |
| finalPrice | Float | 最終價格 | 225.3 |
| orderItemPrices | Array of Object | item價格信息 | 見下表 |
表 orderItemPrices
| 參數名 | 類型 | 示例值 | 說明 |
|---|---|---|---|
| resourceType | String | 資源類型 | NETWORK |
| totalPrice | String | 總價格 | 246.0 |
| finalPrice | String | 最終價格 | 135.3 |
請求示例
POST /v4/eip/query-modify-price
請求體body
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"clientToken": "Xxxxx",
"bandwidth": 5,
"bandwidthID": "bandwidth-xxxx"
}
響應示例
{
"statusCode": 800,
"message": "success",
"description": "",
"errorCode": "SUCCESS",
"returnObj": {
"discountPrice": 1101.6,
"totalPrice": 1836,
"finalPrice": 1101.6,
"subOrderPrices": [
{
"totalPrice": 1836,
"finalPrice": 1101.6,
"serviceTag": "OVMS",
"orderItemPrices": [
{
"resourceType": "NETWORK",
"totalPrice": 1836,
"finalPrice": 1101.6
}
]
}
]
}
}
狀態碼
| 狀態碼 | 描述 |
|---|---|
| 200 | 表示請求成功。 |
錯誤碼
請參考 錯誤碼說明。