How can I configure the maximum queue size in Metadefender Core v4 ?

The maximum queue size can be configured in Metadefender Core v4 via REST API, as follows :

Set scan config {#rest_setscanconfig}

Request

Value

Method

PUT

URL

/admin/config/scan

Request HTTP header parameters:

Name

Type

Required

Value

apikey

string

true

Session id, can be acquired by Login / Create a Session

Request body:

JSON path

Type

Required

Value

max_queue_per_agent

int

true

Max queue size allowed per agent

Example:

{
"max_queue_per_agent": 700
}


An example of a successful response can be found below :

HTTP status code: 200

Response contains information about the modified scan configuration

{
"max_queue_per_agent": 700
}


In case the configuration change was not correct, an error response like the one below will be returned :

Internal error

HTTP status code: 500

{
"err": "Error while modifying configuration"
}

This article applies to Metadefender Core v4 product
This article was last updated on 2018-11-26
CN