Skip to content

Latest commit

 

History

History
160 lines (111 loc) · 4.75 KB

File metadata and controls

160 lines (111 loc) · 4.75 KB

nexus_api_python_client.StatusApi

All URIs are relative to http://localhost/service/rest

Method HTTP request Description
get_system_status_checks GET /v1/status/check Health check endpoint that returns the results of the system status checks
is_available GET /v1/status Health check endpoint that validates server can respond to read requests
is_writable GET /v1/status/writable Health check endpoint that validates server can respond to read and write requests

get_system_status_checks

get_system_status_checks()

Health check endpoint that returns the results of the system status checks

Example

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

# Enter a context with an instance of the API client
with nexus_api_python_client.ApiClient() as api_client:
    # Create an instance of the API class
    api_instance = nexus_api_python_client.StatusApi(api_client)
    
    try:
        # Health check endpoint that returns the results of the system status checks
        api_instance.get_system_status_checks()
    except ApiException as e:
        print("Exception when calling StatusApi->get_system_status_checks: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 The system status check results -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

is_available

is_available()

Health check endpoint that validates server can respond to read requests

Example

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

# Enter a context with an instance of the API client
with nexus_api_python_client.ApiClient() as api_client:
    # Create an instance of the API class
    api_instance = nexus_api_python_client.StatusApi(api_client)
    
    try:
        # Health check endpoint that validates server can respond to read requests
        api_instance.is_available()
    except ApiException as e:
        print("Exception when calling StatusApi->is_available: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 Available to service requests -
503 Unavailable to service requests -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

is_writable

is_writable()

Health check endpoint that validates server can respond to read and write requests

Example

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

# Enter a context with an instance of the API client
with nexus_api_python_client.ApiClient() as api_client:
    # Create an instance of the API class
    api_instance = nexus_api_python_client.StatusApi(api_client)
    
    try:
        # Health check endpoint that validates server can respond to read and write requests
        api_instance.is_writable()
    except ApiException as e:
        print("Exception when calling StatusApi->is_writable: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 Available to service requests -
503 Unavailable to service requests -

[Back to top] [Back to API list] [Back to Model list] [Back to README]