mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 15:11:07 +02:00
* Update README Let contributors know that docs will now be located in UDR * Add comments to each mdx doc Comment has been added to all mdx docs that are not partials * chore: added changelog changelog check failure * wip: removed changelog * Fix content errors * Doc spacing * Update website/content/docs/deploy/kubernetes/vso/helm.mdx Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com> --------- Co-authored-by: jonathanfrappier <92055993+jonathanfrappier@users.noreply.github.com> Co-authored-by: Tu Nguyen <im2nguyen@users.noreply.github.com>
49 lines
1.4 KiB
Plaintext
49 lines
1.4 KiB
Plaintext
---
|
|
layout: api
|
|
page_title: /sys/leader - HTTP API
|
|
description: |-
|
|
The `/sys/leader` endpoint is used to check the high availability status and
|
|
current leader of Vault.
|
|
---
|
|
|
|
> [!IMPORTANT]
|
|
> **Documentation Update:** Product documentation, which were located in this repository under `/website`, are now located in [`hashicorp/web-unified-docs`](https://github.com/hashicorp/web-unified-docs), colocated with all other product documentation. Contributions to this content should be done in the `web-unified-docs` repo, and not this one. Changes made to `/website` content in this repo will not be reflected on the developer.hashicorp.com website.
|
|
|
|
# `/sys/leader`
|
|
|
|
The `/sys/leader` endpoint is used to check the high availability status and
|
|
current leader of Vault.
|
|
|
|
## Read leader status
|
|
|
|
This endpoint returns the high availability status and current leader instance
|
|
of Vault.
|
|
|
|
| Method | Path |
|
|
| :----- | :------------ |
|
|
| `GET` | `/sys/leader` |
|
|
|
|
### Sample request
|
|
|
|
```shell-session
|
|
$ curl \
|
|
http://127.0.0.1:8200/v1/sys/leader
|
|
```
|
|
|
|
### Sample response
|
|
|
|
```json
|
|
{
|
|
"ha_enabled": true,
|
|
"is_self": false,
|
|
"active_time": "2024-01-09T00:11:46.439409062Z",
|
|
"leader_address": "https://127.0.0.1:8200/",
|
|
"leader_cluster_address": "https://127.0.0.1:8201/",
|
|
"performance_standby": false,
|
|
"performance_standby_last_remote_wal": 0,
|
|
"last_wal": 0,
|
|
"raft_committed_index": 0,
|
|
"raft_applied_index": 0
|
|
}
|
|
```
|