API for Stopping a Service
Function
Implements graceful exit of the entire service. When this API is called, the system stops a service until all requests that are being executed and waiting are complete. During the waiting, all inference APIs are unavailable.
Format
Operation type: GET
URL: https://{ip}:{port}/stopService
- 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}/stopService
https://{ip}:{port}/stopService?mode=Force indicates forcible service stop.
Response status code: 200
Output Description
None
Parent topic: Internal Endpoint APIs