Request for information about the state of a KESL container (GET)

Purpose

Obtaining information about the current state of a KESL container and the application status parameters that determine the state of the KESL container (the status of the application, license, and databases).

Path

http://<server>:<port>/status

Response example:

{'product info': {'databases_date': '<database release date>', 'databases_loaded': True, 'license_expiration': '<license expiration date>', 'license_info': 'The key is valid', 'policy': 'Not applied', 'version': '<application version>'}, 'status': 'service available'}

Possible errors

An example of an error (the application is not running in the KESL container):

{'product info': {'databases_date': 'N/A', 'databases_loaded': False, 'license_expiration': 'N/A', 'license_info': 'N/A', 'policy': 'N/A', 'version': 'N/A'}, 'status': 'service not available', 'status_reason': ['KESL not response']}{'product info': {'databases_date': 'N/A', 'databases_loaded': False, 'license_expiration': 'N/A', 'license_info': 'N/A', 'policy': 'N/A', 'version': 'N/A'}, 'status': 'service not available', 'status_reason': ['KESL not response']}{'product info': {'databases_date': 'N/A', 'databases_loaded': False, 'license_expiration': 'N/A', 'license_info': 'N/A', 'policy': 'N/A', 'version': 'N/A'}, 'status': 'service not available', 'status_reason': ['KESL not response']}

Example of an error (application databases were not downloaded):

{'product info': {'databases_date': 'N/A', 'databases_loaded': False, 'license_expiration': '<license expiration date>', 'license_info': 'Inconsistent update', 'policy': 'Not applied', 'version': '<application version>'}, 'status': 'service not available', 'status_reason': ['Databases not loaded', 'License error: Inconsistent update']}

Example of an error (the license has expired):

{'product info': {'databases_date': '<database release date>', 'databases_loaded': True, 'license_expiration': '<license expiration date>', 'license_info': 'Expired', 'policy': 'Not applied', 'version': '<kesl version>'}, 'status': 'service not available', 'status_reason': ['License error: Expired']}

Page top