Retrieve the execution history for a policy
OK
Bad Request
Unauthorized
Unauthorized Action
Not Found
Request Timeout
Rate Limit
Service Unavailable
$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
{- "data": [
- {
- "policy_id": 123456,
- "policy_uuid": "56c0ba07-69f2-4f7c-b0a1-2bb0ed68578e",
- "run_time": "2024-03-27T12:23Z",
- "execution_token": "56c0ba07-69f2-4f7c-b0a1-2bb0ed68578e"
}
]
}