2017-03-15 06:40:33 +00:00
|
|
|
---
|
2020-01-18 00:18:09 +00:00
|
|
|
layout: api
|
|
|
|
page_title: /sys/seal - HTTP API
|
|
|
|
description: The `/sys/seal` endpoint seals the Vault.
|
2017-03-15 06:40:33 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
# `/sys/seal`
|
|
|
|
|
|
|
|
The `/sys/seal` endpoint seals the Vault.
|
|
|
|
|
|
|
|
## Seal
|
|
|
|
|
|
|
|
This endpoint seals the Vault. In HA mode, only an active node can be sealed.
|
|
|
|
Standby nodes should be restarted to get the same effect. Requires a token with
|
|
|
|
`root` policy or `sudo` capability on the path.
|
|
|
|
|
2020-01-18 00:18:09 +00:00
|
|
|
| Method | Path |
|
|
|
|
| :----- | :---------- |
|
2022-02-25 14:52:24 +00:00
|
|
|
| `POST` | `/sys/seal` |
|
2017-03-15 06:40:33 +00:00
|
|
|
|
|
|
|
### Sample Request
|
|
|
|
|
2020-05-21 17:18:17 +00:00
|
|
|
```shell-session
|
2017-03-15 06:40:33 +00:00
|
|
|
$ curl \
|
|
|
|
--header "X-Vault-Token: ..." \
|
2022-02-25 14:52:24 +00:00
|
|
|
--request POST \
|
2018-03-23 15:41:51 +00:00
|
|
|
http://127.0.0.1:8200/v1/sys/seal
|
2017-03-15 06:40:33 +00:00
|
|
|
```
|