2017-03-15 06:40:33 +00:00
|
|
|
---
|
2020-01-18 00:18:09 +00:00
|
|
|
layout: api
|
|
|
|
page_title: /sys/leader - HTTP API
|
|
|
|
sidebar_title: <code>/sys/leader</code>
|
2017-03-15 06:40:33 +00:00
|
|
|
description: |-
|
|
|
|
The `/sys/leader` endpoint is used to check the high availability status and
|
|
|
|
current leader of Vault.
|
|
|
|
---
|
|
|
|
|
|
|
|
# `/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.
|
|
|
|
|
2020-01-18 00:18:09 +00:00
|
|
|
| Method | Path |
|
|
|
|
| :----- | :------------ |
|
|
|
|
| `GET` | `/sys/leader` |
|
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 \
|
2018-03-23 15:41:51 +00:00
|
|
|
http://127.0.0.1:8200/v1/sys/leader
|
2017-03-15 06:40:33 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Sample Response
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"ha_enabled": true,
|
|
|
|
"is_self": false,
|
2017-07-31 22:25:27 +00:00
|
|
|
"leader_address": "https://127.0.0.1:8200/",
|
2018-08-28 19:48:02 +00:00
|
|
|
"leader_cluster_address": "https://127.0.0.1:8201/",
|
|
|
|
"performance_standby": false,
|
|
|
|
"performance_standby_last_remote_wal": 0
|
2017-03-15 06:40:33 +00:00
|
|
|
}
|
|
|
|
```
|