更新实例的健康状态
/nacos/v1/ns/health/instance
更新实例的健康状态,仅在集群的健康检查关闭时才生效,当集群配置了健康检查时,该接口会返回错误
请求参数
Query Params
namespaceId
string
optional
命名空间ID
Example:
n1
serviceName
string
required
服务名
Example:
{{serviceName3}}
groupName
string
optional
分组名
clusterName
string
optional
集群名
ip
string
required
服务实例IP
Example:
{{ip}}
port
string
required
服务实例port
Example:
8848
healthy
string
required
是否健康
Example:
true
示例代码
Responses
成功(200)
HTTP 状态码: 200
内容格式: Raw
Example
ok
Modified at 2 年前