Leader

Read Leader Status

Leader.read_leader_status()[source]

Read the high availability status and current leader instance of Vault.

Supported methods:
GET: /sys/leader. Produces: 200 application/json
Returns:The JSON response of the request.
Return type:dict

Examples

import hvac
client = hvac.Client(url='https://127.0.0.1:8200')

status = client.sys.read_leader_status()
print('HA status is: %s' % status['ha_enabled'])

Example output:

HA status is: False