Get agents by action ids

POST /api/fleet/agents

Spaces method and path for this operation:

post /s/{space_id}/api/fleet/agents

Refer to Spaces for more information.

[Required authorization] Route required privileges: fleet-agents-read.

Headers

  • kbn-xsrf string Required

    A required header to protect against CSRF attacks

application/json

Body

  • actionIds array[string] Required

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • items array[string] Required
  • 400 application/json
    Hide response attributes Show response attributes object
    • error string
    • errorType string
    • message string Required
    • statusCode number
POST /api/fleet/agents
curl \
 --request POST 'http://localhost:5601/api/fleet/agents' \
 --header "Authorization: $API_KEY" \
 --header "Content-Type: application/json" \
 --header "kbn-xsrf: true" \
 --data '{"actionIds":["string"]}'