Execution History for a Policy

Retrieve the execution history for a policy

SecuritybearerAuth
Request
path Parameters
policy_uuid
required
string <uuid>

Policy UUID

Examples:
56c0ba07-69f2-4f7c-b0a1-2bb0ed68578e
query Parameters
org
required
string <uuid>

Organization UUID

Examples:
org=56c0ba07-69f2-4f7c-b0a1-2bb0ed68578e
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/{policy_uuid}/runs
Request samples
$apiKey = 'your_automox_api_key'
$axOrgUUID = 'your_automox_org_uuid'
$axPolicyUUID = 'your_policy_uuid'
$headers = @{
    "Authorization" = "Bearer $apiKey"
    "Content-Type" = "application/json"
    }
$url = "https://policyreport.automox.com/policy-history/policies/$axPolicyUUID/runs?org=$axOrgUUID"
$response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers).Content
Response samples
application/json
{
  • "data": [
    • {
      • "policy_id": 123456,
      • "policy_uuid": "56c0ba07-69f2-4f7c-b0a1-2bb0ed68578e",
      • "run_time": "2024-03-27T12:23Z",
      • "execution_token": "56c0ba07-69f2-4f7c-b0a1-2bb0ed68578e"
      }
    ]
}