查询实例详情
GET
/nacos/v1/ns/instance查询一个服务下个某个实例详情。
Request
Query Params
serviceName
string
required
服务名
Example:
{{serviceName2}}
groupName
string
optional
分组名
ip
string
required
实例IP
Example:
{{ip}}
port
string
required
实例端口
Example:
{{port}}
namespaceId
string
optional
命名空间ID
cluster
string
optional
集群名称
Example:
DEFAULT
healthyOnly
string
optional
boolean,默认为false,是否只返回健康实例
Example:
false
ephemeral
string
optional
boolean,是否临时实例
Request samples
Responses
成功(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
metadata
object
required
instanceId
string
required
port
integer
required
service
string
required
healthy
boolean
required
ip
string
required
clusterName
string
required
weight
integer
required
Example
{
"metadata": {},
"instanceId": "10.10.10.10-8888-DEFAULT-nacos.test.2",
"port": 8888,
"service": "nacos.test.2",
"healthy": false,
"ip": "10.10.10.10",
"clusterName": "DEFAULT",
"weight": 1
}
Last modified: 2 年前