查询实例详情
GET
/nacos/v1/ns/instance
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'http://127.0.0.1:8848/nacos/v1/ns/instance?serviceName={{serviceName2}}&ip={{ip}}&port={{port}}'
Response Response 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
}
Request
Query Params
serviceName
string
required
Example:
{{serviceName2}}
groupName
string
optional
ip
string
required
Example:
{{ip}}
port
string
required
Example:
{{port}}
namespaceId
string
optional
cluster
string
optional
Example:
DEFAULT
healthyOnly
string
optional
Example:
false
ephemeral
string
optional