Health Check
Function
Checks the service status.
- This API is scheduled for deprecation.
- It is recommended that you call this API at 5-second intervals.
Format
Operation type: GET
URL: https://{ip}:{port}/health
- The {ip} field preferentially reads the environment variable MIES_CONTAINER_MANAGEMENT_IP. If the environment variable does not exist, managementIpAddress in the configuration file is used. If managementIpAddress does not exist in the configuration file, ipAddress in the configuration file is used.
- The {port} field preferentially reads the managementPort parameter in the configuration file. If the configuration file does not contain the managementPort parameter, the port parameter in the configuration file is used.
Request Parameters
None
Usage Example
Request example:
GET https://{ip}:{port}/health/info
Response example:
If the service is normal, no content is displayed.
Output Description
- Status code 200: The service status is normal, and the message body contains no content.
- Other status codes: The service status is abnormal.
Parent topic: APIs Compatible with TGI 0.9.4