fca7cb3794
* website: replace deprecated <tt> with <code> in front matter sidebar_title * website: wrap front matter sidebar_title in <code> for commands pages
32 lines
812 B
Markdown
32 lines
812 B
Markdown
---
|
|
layout: "api"
|
|
page_title: "/sys/seal - HTTP API"
|
|
sidebar_title: "<code>/sys/seal</code>"
|
|
sidebar_current: "api-http-system-seal/"
|
|
description: |-
|
|
The `/sys/seal` endpoint seals the Vault.
|
|
---
|
|
|
|
# `/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.
|
|
|
|
| Method | Path | Produces |
|
|
| :------- | :--------------------------- | :--------------------- |
|
|
| `PUT` | `/sys/seal` | `204 (empty body)` |
|
|
|
|
### Sample Request
|
|
|
|
```
|
|
$ curl \
|
|
--header "X-Vault-Token: ..." \
|
|
--request PUT \
|
|
http://127.0.0.1:8200/v1/sys/seal
|
|
```
|