Skip to content

Commit

Permalink
Document bootstrap API. (#12132)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncabatoff committed Jul 20, 2021
1 parent 6eaec2d commit 6e9a3c5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions website/content/api-docs/system/storage/raft.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -219,3 +219,23 @@ $ curl \
--data-binary @raft.snap \
http://127.0.0.1:8200/v1/sys/storage/raft/snapshot-force
```

## Bootstrap an HA node

When a node uses Raft exclusively for `ha_storage`, this endpoint is used to activate
Raft. It is analogous to using `sys/init` to initialize storage, in that it
only needs to be done once per cluster, after which `vault operator raft join`
is used to add more nodes to the Raft cluster.

| Method | Path |
| :----- | :--------------------------- |
| `POST` | `/sys/storage/raft/bootstrap` |

### Sample Request

```shell-session
$ curl \
--header "X-Vault-Token: ..." \
--request POST \
http://127.0.0.1:8200/v1/sys/storage/raft/bootstrap
```

0 comments on commit 6e9a3c5

Please sign in to comment.