更新gwlb
更新時間 2025-10-22 18:25:47
最近更新時間: 2025-10-22 18:25:47
分享文章
接口功能介紹
更新網關負載均衡屬性
接口約束
無
URI
POST /v4/gwlb/update
路徑參數 無
Query參數 無
請求參數
請求頭header參數 無
請求體body參數
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| regionID | 是 | String | 資源池 ID | bb9fdb42056f11eda1610242ac110002 | |
| projectID | 否 | String | 企業項目ID,默認"0" | 0 | |
| gwLbID | 是 | String | 網關負載均衡ID | gwlb-xxx | |
| name | 否 | String | 支持拉丁字母、中文、數字,下劃線,連字符,中文 / 英文字母開頭,不能以 http: / https: 開頭,長度 2 - 32 | test | |
| description | 否 | String | 支持拉丁字母、中文、數字, 特殊字符:~!@#$%^&()_-+= <>?:"{},./;'[]·!@#¥%……&() —— -+={}《》?:“”【】、;‘',。、,不能以 http: / https: 開頭,長度 0 - 128 | desc |
響應參數
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| 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 | |
| 表 returnObj |
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| gwLbID | String | 網關負載均衡 ID | 1 |
枚舉參數
無
請求示例
請求url
POST /openapi/v4/gwlb/update
請求頭header
無
請求體body
{
"regionID": "xxxx",
"gwLbID": "xxxxxxxx",
"name": "xxxxxxxx"
}
響應示例
#### 成功響應示例
{
"statusCode":800,
"errorCode":"SUCCESS",
"message":"success",
"descritption": "成功",
"returnObj":{
"gwLbID": "xxxxxxx"
}
}
#### 失敗響應示例
{
"statusCode": 900,
"message": "request param error",
"description": "參數錯誤",
"errorCode": "Openapi.Parameter.Error"
}
狀態碼
請參考
錯誤碼
請參考