Retrieve a report containing devices that need attention.
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
Invalid Request
$apiKey = 'your_automox_api_key' $headers = @{ "Authorization" = "Bearer $apiKey" } $url = 'https://console.automox.com/api/reports/needs-attention?o=0000&groupId=12345&limit=10&offset=20' $response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers).Content
[- {
- "nonCompliant": {
- "total": 0,
- "none": 0,
- "low": 0,
- "medium": 0,
- "high": 0,
- "critical": 0,
- "other": 0,
- "devices": [
- {
- "id": 0,
- "name": "string",
- "customName": "string",
- "serverCreateTime": "2019-08-24T14:15:22Z",
- "lastRefreshTime": "2019-08-24T14:15:22Z",
- "connected": true,
- "needsReboot": true,
- "groupId": 0,
- "os_family": "string",
- "policies": [
- {
- "id": 0,
- "name": "string",
- "type": "string",
- "reasonForFail": "string",
- "policyCreateTime": "2019-08-24T14:15:22Z",
- "severity": "no_known_cves",
- "packages": [
- { }
]
}
]
}
]
}
}
]