更新監聽器屬性
更新時間 2025-05-23 22:34:47
最近更新時間: 2025-05-23 22:34:47
分享文章
接口功能介紹
更新監聽器
接口約束
無
URI
POST /v4/elb/update-listener-attr
路徑參數
無
Query參數
無
請求參數
請求頭header參數
無
請求體body參數
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| regionID | 是 | String | 區域ID | ||
| listenerID | 是 | String | 監聽器 ID | ||
| name | 否 | String | 唯一。支持拉丁字母、中文、數字,下劃線,連字符,中文 / 英文字母開頭,不能以 http: / https: 開頭,長度 2 - 32 | acl11 | |
| description | 否 | String | 描述,支持拉丁字母、中文、數字, 特殊字符: |
||
| accessControlID | 否 | String | 訪問控制ID | ||
| accessControlType | 否 | String | 訪問控制類型。取值范圍:Close(未啟用)、White(白名單)、Black(黑名單) |
響應參數
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| 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 | |
| error | String | statusCode為900時為業務細分錯誤碼,三段式:product.module.code; statusCode為800時為SUCCESS |
枚舉參數
無
請求示例
請求url
POST /v4/elb/update-listener-attr
請求頭header
無
請求體body
{
"regionID": "81f7728662dd11ec810800155d307d5b",
"listenerID": "listener-ai7x5ulq4t",
"name": "yacos-test-tmp",
"description": "yacos-test-tmp",
"accessControlID": "ac-or6bz91ihq",
"accessControlType": "White"
}
響應示例
{
"statusCode": 800,
"errorCode": "SUCCESS",
"message": "success",
"description": "成功"
}
狀態碼
請參考
錯誤碼
請參考