Report agent file inventory
POST
/agents/reportContract
Parameter | Value |
|---|---|
| Section | agents |
| Authentication | AgentAuth |
| Consumes | application/json |
| Produces | application/json |
Parameters
1 parameter
Name | Location | Required | Type | Description |
|---|---|---|---|---|
| request | body | yes | object | Agent file inventory |
{ "files": [ { "id": 0, "sha256": "<string>", "storage": "<string>" } ], "hostname": "<string>", "requestedFiles": [ 0 ] }
Responses
3 responses
Status | Description | Type |
|---|---|---|
200 | Successful response | object |
400 | Agent secret is missing or the request body is invalid | object |
500 | Internal server error | object |
{ "missingFiles": [ { "category": "<string>", "id": 0, "sha256": "<string>", "size": 0 } ], "missingSize": 0, "obsoleteFiles": [ 0 ] }{ "data": {}, "error": "<string>" }{ "data": {}, "error": "<string>" }