Retrieve all policy execution counts
OK
Bad Request
Unauthorized
Unauthorized Action
Not Found
Request Timeout
Rate Limit
Service Unavailable
$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
{- "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
}
]
}