跳转到主要内容
GET
/
v1
/
status
获取当前节点状态
curl --request GET \
  --url http://127.0.0.1:22100/v1/status \
  --header 'Authorization: Bearer <token>'
{
  "generation": 123,
  "node_id": "<string>",
  "role": "standalone"
}

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

响应

当前代际与节点角色

generation
integer<int64>
必填
node_id
string
必填
role
enum<string>
必填
可用选项:
standalone,
leader,
follower