/api/ha/restlist
列出高可用性网络中的节点数组。
启动 REST 服务器(监听 8083 端口)后,以下 HTTP 请求将返回高可用网络中的节点列表:
http://localhost:8083/api/ha/restlist
“ha”数组为高可用性网络中的每个节点显示以下键:
{
"ha":
[
{
"node_id": 1, # identifier of the node,
"role" : "master", # 'master' or 'replica',
"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
{
]
}