Run a command
Spaces method and path for this operation:
post /s/{space_id}/api/endpoint/action/execute
Refer to Spaces for more information.
Run a shell command on an endpoint.
Body
Required
-
List of agent types to retrieve. Defaults to
endpoint.Values are
endpoint,sentinel_one,crowdstrike, ormicrosoft_defender_endpoint. -
A list of alerts ids.
At least
1element. Minimum length of each is1. -
Case IDs to be updated (cannot contain empty strings)
At least
1element. Minimum length of each is1. -
Optional comment
-
List of endpoint IDs (cannot contain empty strings)
At least
1element. Minimum length of each is1. -
Optional parameters object
POST
/api/endpoint/action/execute
curl \
--request POST 'https://localhost:5601/api/endpoint/action/execute' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"comment":"Get list of all files","parameters":{"command":"ls -al","timeout":600},"endpoint_ids":["b3d6de74-36b0-4fa8-be46-c375bf1771bf"]}'