查询服务
GET
/nacos/v1/ns/service查询一个服务
Request
Query Params
serviceName
string
required
服务名
Example:
{{serviceName2}}
groupName
string
optional
分组名
namespaceId
string
optional
命名空间ID
Request samples
Responses
成功(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
metadata
object
required
groupName
string
required
namespaceId
string
required
name
string
required
selector
object
required
type
string
required
protectThreshold
integer
required
clusters
array [object {3}]
required
healthChecker
object
optional
metadata
object
optional
name
string
optional
Example
{
metadata: { },
groupName: "DEFAULT_GROUP",
namespaceId: "public",
name: "nacos.test.2",
selector: {
type: "none"
},
protectThreshold: 0,
clusters: [
{
healthChecker: {
type: "TCP"
},
metadata: { },
name: "c1"
}
]
}
Last modified: 2 年前