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.
OK
Invalid Request
$apiKey = 'your_automox_api_key' $axOrgUUID = 'your_automox_org_uuid' $headers = @{ "Authorization" = "Bearer $apiKey" "Content-Type" = "application/json" } $url = "https://console.automox.com/api/policy-history/policy-run-count/?org=$axOrgUUID&days=7" $response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers).Content
{- "policy_runs": 100
}