Retrieves a paginated, sortable list of the latest result for each policy execution for a given zone.
Successful Operation
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" "Content-Type" = "application/json" } $url = "https://console.automox.com/api/zones/{zoneId}/reports/policies" $response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers).Content
{- "metadata": {
- "total_pages": 10,
- "current_page": 0,
- "limit": 500,
- "total_count": 500,
}, - "data": [
- {
- "id": 0,
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "zone_id": "4495020a-236f-46e0-9453-e3f9cc6476f4",
- "name": "string",
- "type": "patch",
- "statistics": {
- "offline": 0,
- "success": 0,
- "missed": 0,
- "failed": 0
}, - "total_results": 0,
- "total_success": 0,
- "execution_time": "2019-08-24T14:15:22Z"
}
]
}