Retrieving an Archive with Required Apps and Binaries
GET /app/content
Retrieves an archive with required apps and binaries:
curl -k -XGET https://<SAF BM IP-address>:7767/app/content
Input Parameters (Headers)
| Name | Type | Description |
|---|---|---|
| СlientIP | string | IP address of the host from which the request originates |
| FileType | string | Type of requested resource: app or binary |
Input Parameters (Body)
| Name | Type | Description |
|---|---|---|
| ip | string | IP address of the host from which the request originates |
| dns | string | DNS of the host from which the request originates |
| hostname | string | Hostname of the host from which the request originates |
| system | string | Operating system of the host from which the request originates |
| guid | string | Unique identifier of the SAF Beat from which the request originates |
| app | string | Name of the requested resource |
Output Parameters
Byte array.
Header:
| Name | Type | Description |
|---|---|---|
| Hash | string | SHA256 hash sum of the archive being sent |
Supported Errors
| Status | Error Content | Description |
|---|---|---|
| 400 | <syntax error> | Syntax error in the request body |
| 400 | Wrong json fields | Incorrect field name or missing required field |
| 500 | <error writing response to request> | Internal SAF Beat Manager error |
| 400 | Cannot find file <file name> | The archive data was not found |
| 400 | Header is not filled | FileType header is missing |
Examples
Input parameters example:
{
"ip": "133.133.133.133",
"dns": "google",
"hostname": "coolHost",
"system": "windows-amd64",
"guid": "1231",
"app": "filebeat"
}