查询服务
GET
/nacos/v1/ns/service
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'http://127.0.0.1:8848/nacos/v1/ns/service?serviceName={{serviceName2}}'
Response Response Example
{
metadata: { },
groupName: "DEFAULT_GROUP",
namespaceId: "public",
name: "nacos.test.2",
selector: {
type: "none"
},
protectThreshold: 0,
clusters: [
{
healthChecker: {
type: "TCP"
},
metadata: { },
name: "c1"
}
]
}
Request
Query Params
serviceName
string
required
Example:
{{serviceName2}}
groupName
string
optional
namespaceId
string
optional
Responses
Modified at 2022-11-14 02:31:26