跳转到主要内容
POST
/
v1
/
cluster
/
gossip
/
join
将节点加入 Gossip 集群
curl --request POST \
  --url http://127.0.0.1:22100/v1/cluster/gossip/join \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "peer": "<string>"
}
'
{
  "ok": true
}

授权

Authorization
string
header
必填

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

请求体

application/json
peer
string
必填

用于加入集群的对端地址。

响应

已加入

ok
boolean
必填