Policy Execution Counts

Retrieve all policy execution counts

SecuritybearerAuth
Request
query Parameters
org
required
string <uuid>

Organization UUID

Examples:
org=56c0ba07-69f2-4f7c-b0a1-2bb0ed68578e
start_time
string
Default: ""

The date-time the policy execution started

Examples:
start_time=2024-03-27T12:23:45Z
end_time
string
Default: ""

The date-time that the policy execution ended

Examples:
end_time=2023-04-27T12:23:45Z
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/policies
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/policies?org=$axOrgUUID"
$response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers).Content
Response samples
application/json
{
  • "data": [
    • {
      • "org_uuid": "56c0ba07-69f2-4f7c-b0a1-2bb0ed68578e",
      • "policy_id": 123456,
      • "policy_name": "Patch Tuesday",
      • "policy_uuid": "56c0ba07-69f2-4f7c-b0a1-2bb0ed68578e",
      • "exec_time": "2024-03-27T12:23:45Z",
      • "run_count": 100
      }
    ]
}