續訂彈性 IP
更新時間 2023-07-19 13:57:28
最近更新時間: 2023-07-19 13:57:28
分享文章
接口功能介紹
調用此接口可續訂彈性 IP。
接口約束
無。
URI
POST /v4/eip/renew
請求參數
請求體Body參數
| 參數 | 參數類型 | 是否必填 | 說明 | 示例 |
|---|---|---|---|---|
| clientToken | String | 是 | 客戶端存根,用于保證訂單冪等性, 長度 1 - 64 | 79fa97e3-c48b-xxxx-9f46-6a13d8163678 |
| regionID | String | 是 | 資源池 ID | |
| projectID | String | 否 | 企業項目 ID,默認為"0" | |
| cycleType | String | 是 | 訂購類型:month / year | month |
| cycleCount | Integer | 是 | 訂購時長, 當 cycleType = month, 支持續訂 1 - 11 個月; 當 cycleType = year, 支持續訂 1 - 3 年 | 1 |
| eipID | String | 是 | eip id | eip-xxxx |
響應參數
| 參數 | 參數類型 | 說明 | 示例 |
|---|---|---|---|
| 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 | object | 返回結果 |
表 returnObj
| 參數 | 參數類型 | 示例 | 說明 |
|---|---|---|---|
| masterOrderID | String | 55d531d7bf2d47658897c42ffb918423 | 訂單 id |
| masterOrderNO | String | 20221021191602644224 | 訂單編號 |
| regionID | String | 81f7728662dd11ec810800155d307d5b | 可用區 id |
請求示例
POST /v4/eip/renew
請求體body
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"clientToken": "Xxxxx",
"eipID": "eip-xxxx",
"cycleType": "month",
"cycleCount": 1
}
響應示例
{
"statusCode": 800,
"message": "success",
"description": "",
"errorCode": "SUCCESS",
"returnObj": {
"masterOrderID": "55d531d7bf2d47658897c42ffb918423",
"masterOrderNO": "20221021191602644224",
"regionID": "81f7728662dd11ec810800155d307d5b"
}
}
狀態碼
| 狀態碼 | 描述 |
|---|---|
| 200 | 表示請求成功。 |
錯誤碼
請參考 錯誤碼說明。