Skip to main content
Version: 5.3

Retrieving Information About Connected SAF Beats

GET /clients

Get a list of SAF Beats connected to the SAF Beat Manager:

curl -k -XGET https://<SAF BM IP-address>:7769/clients

Get information about a specific SAF Beat:

curl -k -XGET https://<SAF BM IP-address>:7769/clients/<guid SAFB>

Input Parameters (Headers)

NameTypeDescription
AuthorizationstringLogin and password in Base64 format for SAF Beat Manager authorization

Output Parameters

NameTypeDescription
ipstringSAF Beat IP address
dnsstringSAF Beat DNS
hostnamestringSAF Beat hostname
systemstringSAF Beat operating system
guidstringSAF Beat unique identifier
timestampstringSAF Beat last connection timestamp
groupsstring arrayArray of groups the SAF Beat belongs to
appsstring arrayArray of applications assigned to the SAF Beat
errorsobjectError structure

The errors structure is as follows:

NameTypeDescription
statusboolError presence status
guidstringSAF Beat unique identifier
errortimestampstringError submission timestamp
errorsobject arrayArray of error objects

Objects in the errors array have the following structure:

NameTypeDescription
appstringName of the resource with which errors occurred
apperrorsstring arrayError details

Supported Errors

StatusError ContentDescription
400Non connected clients yetNo SAF Beats are connected yet
500<error writing response to request>Internal server error

Examples

Output parameters example for the /clients request:

[
{
"ip": "133.133.133.132",
"hostname": "coolHost",
"dns": "google",
"guid": "1231",
"system": "windows-amd64",
"timestamp": "2020-10-21 19:14:07",
"groups": [
"android",
"windows",
],
"apps": [
"examplebeat_1"
] ,
"errors": {
"status": false,
"errors": null,
"errortimestamp": ""
}
},
{
"ip": "133.133.133.133",
"hostname": "coolHost",
"dns": "google",
"guid": "1232",
"system": "windows-amd64",
"timestamp": "2020-10-21 19:14:55",
"groups": [
"linux",
"ios"
],
"apps": [
"filebeat_1"
],
"errors": {
"status": true,
"errors": [
{
"app": "filebeat",
"apperrors": [
"error1",
"error2"
]
},
{
"app": "examplebeat",
"apperrors": [
"error3",
"error4"
]
}
],
"errortimestamp": "2020-11-09 17:05:30"
}
}
]

Output parameters example for the /clients/1231 request:

{
"ip": "133.133.133.132",
"hostname": "coolHost",
"dns": "google",
"guid": "1231",
"system": "windows-amd64",
"timestamp": "2020-10-21 19:14:07",
"groups": [
"android",
"windows",
],
"apps": [
"examplebeat_1"
],
"errors": {
"status": false,
"errors": null,
"errortimestamp": ""
}
}