Skip to main content
Version: Development

/sys/leader

The /sys/leader endpoint is used to check the high availability status and details of the current leader node of OpenBao.

Read leader status

MethodPath
GET/sys/leader

Sample request

$ curl \
http://127.0.0.1:8200/v1/sys/leader

Sample responses

With HA enabled:

{
"ha_enabled": true,
"is_self": false,
"leader_address": "https://127.0.0.1:8200/",
"leader_cluster_address": "https://127.0.0.1:8201/",
"active_time": "2009-11-10 23:00:00 +0000 UTC",
}

With HA enabled and running raft:

{
"ha_enabled": true,
"is_self": false,
"leader_address": "https://127.0.0.1:8200/",
"leader_cluster_address": "https://127.0.0.1:8201/",
"active_time": "2009-11-10 23:00:00 +0000 UTC",
"raft_committed_index": 0,
"raft_applied_index": 0,
}

With HA disabled:

{
"ha_enabled": false
}