GET /api/fleet/epm/packages/{pkgName}/stats

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.

Path parameters

  • pkgName string Required

    Package name

Responses

  • 200 application/json

    Successful response

    Hide response attribute Show response attribute object
    • response object Required

      Additional properties are NOT allowed.

      Hide response attributes Show response attributes object
      • agent_policy_count number Required
      • package_policy_count number Required
  • 400 application/json

    Bad Request

    Hide response attributes Show response attributes object
    • attributes Required
    • error string
    • errorType string
    • message string Required
    • statusCode number
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
}