Retrieves a list of devices in the latest execution for the given policy, as a CSV, for the given zone. This includes the result for each device, and reason for failure, as applicable.
Downloads the policy device list CSV automatically.
Invalid Request
Access token is missing or invalid
You do not have permission to perform this action.
Entity not found
Too many requests
Service Unavailable
$apiKey = 'your_automox_api_key' $headers = @{ "Authorization" = "Bearer $apiKey" } $url = "https://console.automox.com/api/zones/{zoneUUID}/reports/policies/{policyUUID}/csv" Invoke-WebRequest -Method Get -Uri $url -Headers $headers -ContentType "application/octet-stream" -OutFile "$env:userprofile\Downloads\policy-device-list_report.csv"