Configuration
v5.2.0
Search this version
Configuration
Configuration
Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Health Check API Configuration
Copy Markdown
Open in ChatGPT
Open in Claude
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:
request
curl --request GET --url 'http://localhost:8088/readyz?verbose=true'respond
{ "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:

| 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 |
| POST | /admin/config/healthcheck | Set setting heath check | Administrator |
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on Feb 27, 2023
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message
