文档中心 > ModifyHealthMonitor
ModifyHealthMonitor

最近更新时间:2022-06-28

请求方法:Put

接口描述:修改健康检查

请求参数

路径参数

参数名称

类型

是否必须

备注

Action

string

要执行的操作 ModifyHealthMonitor。

RegionId

string

节点Id。

Body

参数名称

类型

是否必须

备注

CheckInterval

integer

检查间隔,范围:1-60。

CheckType

string

类型PING、TCP、HTTP。

ExpectResponseCode

List<String>

正常状态码(http_2xx、http_3xx、http_4xx、http_5xx)。

HttpMethod

integer

HTTP方法(GET、POST)。

ListenerId

string

监听器ID。

LoadbalancerId

string

slb的ID。

MatchingUrl

string

检查路径。

MaxRetries

integer

最大重复次数,范围:1-10。

Name

string

名称。

Timeout

integer

超时时间,范围:1-60。

Id

string

健康检查ID。

Open

boolean

是否开启。

返回数据

参数名称

类型

备注

Code

string

请求结果编码。

Msg

string

请求结果信息。

Res

object

返回结果集。

RequestId

string

请求Id。

示例

请求示例

DELETE https://api.unicloud.com/networks/slb?Action=ModifyHealthMonitor

&RegionId=HB1-BJMY

&公共请求参数

返回示例

  json

{

    "Code": "Network.Success",

    "Msg": "修改健康检查成功",

    "Res": null,

    "RequestId": "603147c1-ac46-40f0-b2f3-6afb34a1df02"

}