Retrieving an Archive with Required apps and binaries
GET /app/content
Retrieve an archive with required apps and binaries:
curl -k -XGET https://<SBM_HOST>:7767/app/content
Header Input Parameters
| Name | Type | Description |
|---|---|---|
| ClientIP | string | IP address of the host sending the request |
| FileType | string | Type of requested resource: app or binary |
Body Input Parameters
| Name | Type | Description |
|---|---|---|
| ip | string | IP address of the host sending the request |
| dns | string | DNS of the host sending the request |
| hostname | string | Hostname of the host sending the request |
| system | string | Operating system of the host sending the request |
| guid | string | Unique identifier of Smart Beat sending the request |
| app | string | Name of requested resource |
Output Parameters
Byte array.
Header:
| Name | Type | Description |
|---|---|---|
| Hash | string | SHA256 checksum of the sent archive |
Supported Errors
| Status | Error content | Error description |
|---|---|---|
| 400 | <syntax error> | Syntax error in body |
| 400 | Wrong json fields | Wrong field name or missing required field |
| 500 | <response write error> | Internal Smart Beat Manager error |
| 400 | Cannot find file <file name> | Archive data was not found |
| 400 | Header is not filled | Missing FileType header |
Examples
Example input parameters:
{
"ip": "133.133.133.133",
"dns": "google",
"hostname": "coolHost",
"system": "windows-amd64",
"guid": "1231",
"app": "filebeat"
}