查询服务
/nacos/v1/ns/service
查询一个服务
请求参数
Query Params
serviceName
string
required
服务名
Example:
{{serviceName2}}
groupName
string
optional
分组名
namespaceId
string
optional
命名空间ID
示例代码
Responses
成功(200)
HTTP 状态码: 200
内容格式: 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"
}
]
}
Modified at 2 年前