专有云计算 >
API 文档 >
修改负载均衡健康检查器
修改负载均衡健康检查器
最近更新时间: 2022-01-18 10:42:42
请求路径
PUT /api/rio/v1/network/loadbalancer_health/:health_id
请求参数
| 名称 |
类型 |
位置 |
必须 |
描述 |
| x-rio-zone-id |
string |
header |
是 |
地域 ID |
| health_id |
string |
path |
是 |
健康检查器 ID |
| health_monitor_name |
string |
body |
否 |
名称 |
| health_http_method |
string |
body |
否 |
健康检查请求方法:connectdeletegetheadoptionspatchpostputtrace
|
| health_check_domain |
string |
body |
否 |
健康检查的域名 |
| health_check_uri |
string |
body |
否 |
健康检查的 URI |
| healthy_threshold |
integer |
body |
否 |
健康检查连续成功多少次后,将后端服务器的健康检查状态由fail判定为success。取值:2-10。 默认值: 3 |
| unhealthy_threshold |
integer |
body |
否 |
健康检查连续失败多少次后,将后端服务器的健康检查状态由success判定为fail。取值:2-10。 默认值: 3 |
| health_check_interval |
integer |
body |
否 |
健康检查的时间间隔。取值:1-50(秒)。 默认值: 2 |
| health_check_timeout |
integer |
body |
否 |
健康检查连接超时时间,此值必须小于延迟值(health_check_interval) |
| health_check_http_code |
string |
body |
否 |
健康检查正常的HTTP状态码:http_2xxhttp_3xxhttp_4xxhttp_5xx
|
返回值
| 名称 |
类型 |
描述 |
| request_id |
string |
请求 ID |
| data |
SLBHealthMonitorInfo |
负载均衡健康检查器信息 |
SLBHealthMonitorInfo 负载均衡健康检查器信息
| 名称 |
类型 |
描述 |
| health_monitor_id |
string |
健康检查器 ID |
| health_monitor_name |
string |
健康检查器名称 |
| health_check_type |
string |
健康检查协议类型:httphttpspingsctptcptls-helloudp-connect
|
| health_http_method |
string |
健康检查请求方法:connectdeletegetheadoptionspatchpostputtrace
|
| health_check_domain |
string |
用于健康检查的域名 |
| health_check_uri |
string |
用于健康检查的URI |
| health_check_connect_port |
integer |
健康检查使用的端口。取值:1-65535。 |
| healthy_threshold |
integer |
健康检查连续成功多少次后,将后端服务器的健康检查状态由fail判定为success。取值:2-10。 默认值: 3 |
| unhealthy_threshold |
integer |
健康检查连续失败多少次后,将后端服务器的健康检查状态由success判定为fail。取值:2-10。 默认值: 3 |
| health_check_interval |
integer |
健康检查的时间间隔。取值:1-50(秒)。 默认值: 2 |
| health_check_timeout |
integer |
健康检查连接超时时间,此值必须小于延迟值(health_check_interval) |
| health_check_http_code |
string |
健康检查正常的HTTP状态码:http_2xxhttp_3xxhttp_4xxhttp_5xx
|
请求值示例
返回值示例