harbor_client.HealthApi

All URIs are relative to http://localhost/api/v2.0

MethodHTTP requestDescription
get_healthGET /healthCheck the status of Harbor components

get_health

Signature

get_health(x_request_id: Optional[str])-> OverallHealthStatus

Check the status of Harbor components

Check the status of Harbor components

Example

from __future__ import print_function
import time
import harbor_client
from harbor_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: basic
configuration = harbor_client.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'

# create an instance of the API class
api_instance = harbor_client.HealthApi(harbor_client.ApiClient(configuration))
x_request_id = 'x_request_id_example' # str | An unique ID for the request (optional)

try:
    # Check the status of Harbor components
    api_response = api_instance.get_health(x_request_id=x_request_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling HealthApi->get_health: %s\n" % e)

Parameters

NameTypeDescriptionNotes
x_request_idstrAn unique ID for the request[optional]

Return type

OverallHealthStatus

Authorization

basic

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top]