调用StartLoadBalancerListener启动监听。
接口说明
API 调用频率:100 次/秒。
单用户调用频率:10 次/秒。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
ens:StartLoadBalancerListener |
update |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ListenerPort |
integer |
是 |
需要启动的监听端口。取值:1~65535。 |
8080 |
| LoadBalancerId |
string |
是 |
负载均衡实例的 ID。 |
lb-5saivuir6b1mupxjfbhmk**** |
| ListenerProtocol |
string |
否 |
负载均衡实例前端使用的协议。取值:
说明
相同端口存在不同协议监听时,此字段必填。 |
tcp |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
示例
正常返回示例
JSON格式
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | ens.interface.error | An error occurred while call the API. | |
| 400 | Invalid%s | The specified parameter %s is invalid. | |
| 400 | Missing%s | You must specify the parameter %s. | |
| 400 | LoadBalancerNotFound | The input parameter loadBalancerId that is not found. | |
| 400 | IncorrectInstanceStatus | The current status of the resource does not support this operation. | 当前操作不被支持,磁盘正在重置中。 |
| 400 | ListenerNotFound | The input parameter listener that is not found. | |
| 400 | IncorrectListenerStatus | The current status of the resource does not support this operation. | 监听状态不正确。 |
| 400 | TooManyListeners | More than 1 listener is found, please be more specified. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。