Retrieves a list of devices in the latest execution for the given policy, as a CSV, for the given zone.

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.

SecuritybearerAuth
Request
path Parameters
zoneUUID
required
string <uuid>

The UUID of the target zone.

policyUUID
required
string <uuid>

The UUID of the target policy.

Responses
200

Downloads the policy device list CSV automatically.

400

Invalid Request

401

Access token is missing or invalid

403

You do not have permission to perform this action.

404

Entity not found

429

Too many requests

503

Service Unavailable

get/zones/{zoneUUID}/reports/policies/{policyUUID}/devices/csv
Request samples
$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"
Response samples
application/octet-stream
No sample