/api/cluster/restlist
列出了集群网络中的节点数组。
启动 REST 服务器(监听 8083 端口)后,以下 HTTP 请求将返回集群网络中节点的列表:
http://localhost:8083/api/cluster/restlist
集群数组会为集群网络中的每个节点显示以下键:
{
"cluster":
[
{
"node_id": 1, # identifier of the node,
"role" : "node", # 'node' for all nodes,
"address": "127.0.0.1", # IP address of the node
"rest_iface": "0.0.0.0", # IP address of the REST interface
"rest_port": 8082, # Port of the REST interface
"rest_secure: true # Boolean true if SSL (HTTPS) is used
{
]
}