File: health.rst

package info (click to toggle)
python-hvac 2.3.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,800 kB
  • sloc: python: 29,360; makefile: 42; sh: 14
file content (30 lines) | stat: -rw-r--r-- 493 bytes parent folder | download | duplicates (3)
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
Health
======

.. contents::
   :local:
   :depth: 1


Read Status
-----------

.. automethod:: hvac.api.system_backend.Health.read_health_status
   :noindex:

Examples
````````

.. testcode:: sys_health

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

    status = client.sys.read_health_status(method='GET')
    print('Vault initialization status is: %s' % status['initialized'])

Example output:

.. testoutput:: sys_health

    Vault initialization status is: True