Retrieve the policy information for a given policy UUID
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' $query = '?org=' + $axOrgUUID $headers = @{ "Authorization" = "Bearer $apiKey" "Content-Type" = "application/json" } $url = "https://policyreport.automox.com/policy-history/policies/$axPolicyUUID" $response = (Invoke-WebRequest -Method Get -Uri ($url + $query) -Headers $headers).Content
{- "id": 123456,
- "uuid": "56c0ba07-69f2-4f7c-b0a1-2bb0ed68578e",
- "org_uuid": "56c0ba07-69f2-4f7c-b0a1-2bb0ed68578e",
- "name": "Patch Tuesday",
- "type": "patch",
- "deleted_at": "2024-03-27T12:23:45Z",
- "updated_at": "2024-03-27T12:23:45Z",
- "last_run_time": "2024-03-27T12:23:45Z"
}