Policy Run Count

Retrieve the total number of polices executed in the given number of days See Using Global API Keys for more information on permission and scope requirements.

SecuritybearerAuth
Request
query Parameters
org
required
string <uuid>

Organization UUID

Example: org=56c0ba07-69f2-4f7c-b0a1-2bb0ed68578e
days
integer <int32>
Default: 7

Amount of days after today's date

Example: days=7
Responses
200

OK

400

Bad Request

401

Unauthorized

403

Unauthorized Action

404

Not Found

408

Request Timeout

429

Rate Limit

500

Service Unavailable

get/policy-history/policy-run-count
Request samples
$apiKey = 'your_automox_api_key'
$axOrgUUID = 'your_automox_org_uuid'
$headers = @{
    "Authorization" = "Bearer $apiKey"
    "Content-Type" = "application/json"
}
$url = "https://policyreport.automox.com/policy-history/policy-run-count/?org=$axOrgUUID&days=7"
$response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers).Content
Response samples
application/json
{
  • "policy_runs": 100
}