Function
Queries whether the service status is normal.
You are advised to call this API every 5 seconds.
Format
Operation type: GET
URL: https://{ip}:{port}/v1/health
- The {ip} field preferentially reads the environment variable POD_IP. If the environment variable is not configured, the value of ip in http_server of the ms_controller.json configuration file is used.
- The {port} field uses the value of port in http_server of the ms_controller.json configuration file.
Usage Example
Request example:
GET https://{ip}:{port}/v1/health
Response example:
{
"message":"",
"status":"0"
}
Output Description
- If the status code is 200, the service status is normal.
- If no response is returned, the service is abnormal.