Body Required
-
List of agent types to retrieve. Defaults to
endpoint
.Values are
endpoint
,sentinel_one
,crowdstrike
, ormicrosoft_defender_endpoint
. -
A list of alerts
id
s.At least
1
element. Minimum length of each is1
. -
Case IDs to be updated (cannot contain empty strings)
At least
1
element. Minimum length of each is1
. -
Optional comment
-
List of endpoint IDs (cannot contain empty strings)
At least
1
element. Minimum length of each is1
. -
Optional parameters object
POST /api/endpoint/action/get_file
curl \ --request POST 'https://<KIBANA_URL>/api/endpoint/action/get_file' \ --header "Authorization: $API_KEY" \ --header "Content-Type: application/json" \ --data '{"comment":"Get my file","parameters":{"path":"/usr/my-file.txt"},"endpoint_ids":["ed518850-681a-4d60-bb98-e22640cae2a8"]}'
Request example
{ "comment": "Get my file", "parameters": { "path": "/usr/my-file.txt" }, "endpoint_ids": [ "ed518850-681a-4d60-bb98-e22640cae2a8" ] }
Response examples (200)
{ "data": { "id": "27ba1b42-7cc6-4e53-86ce-675c876092b2", "hosts": { "ed518850-681a-4d60-bb98-e22640cae2a8": { "name": "gke-endpoint-gke-clu-endpoint-node-po-e1a3ab89-4c4r" } }, "agents": [ "ed518850-681a-4d60-bb98-e22640cae2a8" ], "status": "pending", "command": "get-file", "outputs": {}, "agentType": "endpoint", "createdBy": "myuser", "isExpired": false, "startedAt": "2023-07-28T19:00:03.911Z", "agentState": { "ed518850-681a-4d60-bb98-e22640cae2a8": { "isCompleted": false, "wasSuccessful": false } }, "parameters": { "path": "/usr/my-file.txt" }, "isCompleted": false, "wasSuccessful": false } }