1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
Leader
======
.. contents::
:local:
:depth: 1
Read Leader Status
------------------
.. automethod:: hvac.api.system_backend.Leader.read_leader_status
:noindex:
Examples
````````
.. testcode:: sys_leader
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:
.. testoutput:: sys_leader
HA status is: False
Step Down
---------
.. automethod:: hvac.api.system_backend.Leader.step_down
:noindex:
Examples
````````
.. code:: python
import hvac
client = hvac.Client(url='https://127.0.0.1:8200')
client.sys.step_down()
|