Spaces method and path for this operation:
get /s/{space_id}/api/fleet/agent_status
Refer to Spaces for more information.
Get a summary of agent statuses for a given agent policy.
GET
/api/fleet/agent_status
curl \
--request GET 'https://<KIBANA_URL>/api/fleet/agent_status' \
--header "Authorization: $API_KEY"
Response examples (200)
Agent status summary for an agent policy
{
"results": {
"error": 1,
"offline": 2,
"online": 5,
"other": 0,
"updating": 0
},
"totalInactive": 0
}
Response examples (400)
Example of a generic error response
{
"error": "Bad Request",
"message": "An error message describing what went wrong",
"statusCode": 400
}