Spaces method and path for this operation:
get /s/{space_id}/api/fleet/epm/packages/{pkgName}/stats
Refer to Spaces for more information.
Get usage statistics for a specific package, such as the number of agent policies using it.
[Required authorization] Route required privileges: integrations-read OR fleet-setup OR fleet-all.
GET
/api/fleet/epm/packages/{pkgName}/stats
curl \
--request GET 'https://localhost:5601/api/fleet/epm/packages/{pkgName}/stats' \
--header "Authorization: $API_KEY"
Response examples (200)
Usage stats for a specific package
{
"response": {
"agent_policy_count": 3
}
}
Response examples (400)
Example of a generic error response
{
"error": "Bad Request",
"message": "An error message describing what went wrong",
"statusCode": 400
}