Health Check API Configuration
MetaDefender ICAP Server version 5.1.1 or newer
Health check API feature supports you to verify MetaDefender ICAP Server application readiness.
The readiness condition is determined via product configurations, see more at Configure health check policy.
Using the health check API
Health check API expects to return HTTP(S) 200 Successful only when all pre-configured conditions met.
REST API endpoint:
Method | URL | Auth | Function |
---|---|---|---|
GET | /readyz | None | Heath check endpoint. |
URL query string:
name | type | detail | require |
---|---|---|---|
verbose | boolean | Show detailed result of health check | optional |
API responses:
- Status code: 200 (Heathy e.g. ICAP service is fully up and running, and ready for process request)
json element | type | Description | |
---|---|---|---|
database | object | Database connection | |
status | string | Connection status: true/false | |
license | |||
status | string | License status
| |
core_rules | |||
required | string | Additional step to check the availability of MD Core rule
| |
status | string | MD Core rule available status: true/false |
- Status code: 503 (Not healthy e.g. not ready to handle any request yet)
- Status code: 500 (ICAP service is down - internal server error)
Example:
curl --request GET --url 'http://localhost:8088/readyz?verbose=true'
{
"core_rules": {
"required": false,
"status": false
},
"database": {
"status": true
},
"license": {
"status": "ok"
}
}
Configure health check policy
You are supported to adjust thresholds on vital criterias as your own policy tailored for heath check verification, via both REST API and MetaDefender ICAP Server management console.
Using UI
The relevant settings could be found under "Settings" page.
Since MetaDefender ICAP Server v5.2.1, allow to configure to check the MetaDefender Core 's workflows for MetaDefender ICAP Server, expected the product to return "unhealthy" when:
- At least one MetaDefender Core workflow is unavailable.
- or all MetaDefender Core workflows are unavailable.

Value | Description | |
---|---|---|
Enable health check | On / Off | Enabling this option will allow MetaDefender ICAP Server automatically run a background task to collect application operational data for health check logic. |
Using administrative REST API
Method | URL | Function | Auth | |
---|---|---|---|---|
GET | /admin/config/healthcheck | Get setting heath check | Administrator | { "core_rules": true,``"core_rules.config": { "check_all_rules": true }, "database": true, "enable_feature": true, "license": true } |
POST | /admin/config/healthcheck | Set setting heath check | Administrator |
|