7.1.10.1. Get Yara sources

Request

Value

Method

GET

URL

/admin/config/yara/sources

Request HTTP header parameters:

name

type

required

value

apikey

string

true

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

Successful response

HTTP status code: 200

{
"local_sources": [
{
"source": "/mnt/yara",
"state": "enabled"
}
],
"http_sources": [
{
"source": "http://onlineyarasources.net/source.zip",
"state": "disabled"
}
]
}

The response contains the current sources.

Each object in the array represents a source:
source: path or the url of the source
state: state of the source ( can be enabled or disabled )

Error response

Internal error

HTTP status code: 500

{
"err": "<error message>"
}

Invalid api key or rights

HTTP status code: 403

{
"err": "Access denied"
}

Note: Check Metadefender Core server logs for more information.