SetLoadBalancerHTTPListenerAttribute_边缘节点服务 ENS_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

  • API 调用频率:100 次/秒。
  • 单用户调用频率:10 次/秒。

流控信息

请求速率为10/1(s)。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
ens:SetLoadBalancerHTTPListenerAttribute
Update
全部资源
*

请求参数

字段名称字段详情
LoadBalancerIdstring

负载均衡实例的 ID。

示例值:lb-5snthcyu1x10g7tywj7iu****参考取值来源:
    CreateLoadBalancer
    DescribeLoadBalancers
ListenerPortinteger<int32>

需要修改属性的监听端口。取值:1~65535

示例值:8080取值 <= 65535
Descriptionstring

设置监听名称。长度限制为 1~80 个字符。展开详情

示例值:监听说明字符长度 <= 80字符长度 >= 1
Schedulerstring

调度算法。取值:展开详情

示例值:wrr枚举值:wrrwlcrr
HealthCheckstring

是否开启健康检查。取值:展开详情

示例值:on
HealthCheckDomainstring

用于健康检查的域名。展开详情

示例值:www.aliyundoc.com字符长度 <= 80字符长度 >= 1
HealthCheckURIstring

用于健康检查的 URI。长度限制为 1~80展开详情

示例值:/checkpreload.htm字符长度 <= 80字符长度 >= 1
HealthyThresholdinteger<int32>

健康检查连续成功多少次后,将后端服务器的健康检查状态由 fail(后台服务器不可达)判定为 success(后台服务器可达)。取值:2~10展开详情

示例值:3取值 <= 10
UnhealthyThresholdinteger<int32>

健康检查连续失败多少次后,将后端服务器的健康检查状态由 success(后台服务器可达)判定为 fail(后台服务器不可达)。取值:2~10展开详情

示例值:3取值 <= 10
HealthCheckTimeoutinteger<int32>

接收来自运行状况检查的响应需要等待的时间。如果后端 ECS 在指定的时间内没有响应,则判定为健康检查失败。展开详情

示例值:5取值 <= 300
HealthCheckConnectPortinteger<int32>

健康检查使用的端口,取值:1~65535。不设置此参数时,表示使用后端服务端口(BackendServerPort)。展开详情

示例值:65500取值 <= 65535
HealthCheckIntervalinteger<int32>

健康检查的时间间隔。取值:1~50,单位:秒。展开详情

示例值:2取值 <= 50
HealthCheckHttpCodestring

健康检查正常时的 HTTP 状态码。取值:展开详情

示例值:http_2xx
IdleTimeoutinteger<int32>

指定连接空闲超时时间,默认值:15 秒,取值:1~60,单位:秒。展开详情

示例值:15取值 <= 60
RequestTimeoutinteger<int32>

指定请求超时时间,默认值:60 秒,取值:1~180,单位:秒。展开详情

示例值:60取值 <= 180
HealthCheckMethodstring

监听 HTTP 类型健康检查的健康检查方法。取值:展开详情

示例值:head枚举值:headget
XForwardedForstring

是否开启通过 X-Forwarded-For 字段获取来访者真实 IP。取值:展开详情

示例值:on枚举值:onoff

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
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
NoPermission
Permission denied.诊断
400
InvalidParameter.%s
The specified field %s invalid. Please check it again.诊断

变更历史

变更时间变更内容概要操作
2024-06-04
新增请求参数XForwardedFor
2021-05-20
新增OpenAPI,修改HTTP监听属性

相关示例