路由(Routes)
获取集群路由表
API 定义:
GET api/v3/routes/
请求示例:
GET api/v3/routes/
返回数据:
{
"code": 0,
"data": [
{
"node": "emqx@127.0.0.1",
"topic": "testtopic/#"
},
{
"node": "emqx@127.0.0.1",
"topic": "t"
}
],
"meta": {
"page": 1,
"limit": 10000,
"count": 2
}
}
获取集群指定主题的路由信息
API 定义:
GET api/v3/routes/${topic}
请求示例:
GET api/v3/routes/t
返回数据:
{
"code": 0,
"data": [
{
"node": "emqx@127.0.0.1",
"topic": "t"
}
]
}