跳转到主要内容
POST
/
v1
/
cluster
/
config
由 Leader 向集群节点推送配置
curl --request POST \
  --url http://127.0.0.1:22100/v1/cluster/config \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "ok": true,
  "generation": 123,
  "validated": 123,
  "committed": 123,
  "quorum": 123,
  "scope": "http_push",
  "reason": "<string>"
}

授权

Authorization
string
header
必填

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

请求体

application/json

原始 Arc 配置 JSON 文档。

响应

推送已接受

ok
boolean
必填
generation
integer<int64>
必填
validated
integer<int32>
committed
integer<int32>
quorum
integer<int32>
scope
enum<string>
可用选项:
http_push,
gossip
reason
string