Skip to main content
Version: 5.3

Retrieving a list of required apps and binaries

GET /app/list

Retrieves a list of all required apps and binaries:

curl -k -XGET https://<SAF BM IP-address>:7767/app/list

Input Parameters (Headers)

NameTypeDescription
СlientIPstringIP address of the host from which the request originates

Input Parameters (Body)

NameTypeDescription
ipstringIP address of the host from which the request originates
dnsstringDNS of the host from which the request originates
hostnamestringHostname of the host from which the request originates
systemstringOperating system of the host from which the request originates
guidstringUnique identifier of the SAF Beat from which the request originates

Output Parameters

Two arrays of objects in JSON format.

Each object consists of the following parameters:

NameTypeDescription
appstringName of the app/binary
hashstringSHA256 hash sum of the archive containing the app/binary
pathstringExtraction path for the app/binary on the host
existboolPresence status of the app/binary on the SAF Beat Manager
warning

If the field exist=false, the extraction path and hash sum will be empty.

Supported Errors

StatusError ContentDescription
400<syntax error>Syntax error in the request body
400Wrong json fieldsIncorrect field name or missing required field
500<error writing response to request>Internal SAF Beat Manager error
400No groups, apps or binaries with data in bodyAbsence of SAF Beat in groups

Examples

Input parameters example:

{
"ip": "133.133.133.133",
"dns": "google",
"hostname": "coolHost",
"system": "windows-amd64",
"guid": "1231"
}

Output parameters example:

{
"apps": [
{
"app": "filebeat",
"hash": "e19832acb3f21ec9d156f760cffb71cdda08a6e42ae5f202fbb997136f663a87",
"path": "./config/apps",
"exist": true
},
{
"app": "metricbeat",
"hash": "f16090242040ef6e8fd15eff5cb844753960239dc889026ca0fdbb503b9618c1",
"path": "./config/apps",
"exist": true
}
],
"binaries": [
{
"app": "filebeat-oss-7.10.2-linux-x86_64.tar.gz",
"hash": "d8191733ef9e6705b317be2b1cbb2ab0538779b7ff059fdba88d036c447a0123",
"path": "./bin",
"exist": true
}
]
}