This document describes the v2 Health API of Fess. For the common response envelope and error model, see API Overview.
The base URL is http://<Server Name>/api/v2/ (local environment example: http://localhost:8080/api/v2).
Fetching Status
Request
| HTTP Method | GET |
| Endpoint | /api/v2/health |
Returns a snapshot of the search engine cluster status (monitor tag). The HTTP status is 200 when the cluster status is green or yellow, and 503 when it is red.
This endpoint respects the envelope invariant “status >= 1 ⇔ HTTP status >= 400”.
When
greenoryellow: returns a success envelope (status: 0) withengine.When
red: returns an error envelope (status: 9,error.code: service_unavailable) with the engine snapshot embedded undererror.details.engine(to allow monitoring tools to parse cluster metadata).
The fields of engine are as follows:
cluster_name | Cluster name (str). |
status | Cluster status. One of green, yellow, or red. |
ping_status | Ping status (int). |
Table: engine Fields
Request Parameters
There are no available request parameters.
Response
When the cluster is green or yellow (200), a success envelope with engine is returned.
When the cluster is red (503), an error envelope is returned with the engine snapshot embedded under error.details.engine.
Usage Examples
Request example using curl:
Response and Error Response
For details on the error model, see API Overview. The HTTP statuses returned by this endpoint are as follows.
Table: Response List