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' $headers = @{
    "Authorization" = "Bearer $apiKey"
    "Content-Type" = "application/json"
    }
$url = "/policy-history/policies/<your_policy_uuid_goes_here>/runs?org=<your_organization_uuid_goes_here>" $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"
      }
    ]
}