Policy Run Count

Retrieve the total number of polices executed in the given number of days

SecuritybearerAuth
Request
query Parameters
org
required
string <uuid>

Organization UUID

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

Amount of days after today's date

Examples:
days=10
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'
$headers = @{
  "Authorization" = "Bearer $apiKey"
  "Content-Type" = "application/json"
  }
$url = "/policy-history/policy-run-count/?org=<your_organization_uuid_goes_here>&days=7"
$response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers).Content
Response samples
application/json
{
  • "policy_runs": 100
}