Retrieve the pre-patch report.
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" } $url = 'https://console.automox.com/api/reports/prepatch?o=0000&groupId=12345&limit=10&offset=20' $response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers).Content
{- "prepatch": {
- "total": 0,
- "needsAttention": 0,
- "none": 0,
- "low": 0,
- "medium": 0,
- "high": 0,
- "critical": 0,
- "other": 0,
- "devices": [
- {
- "id": 0,
- "name": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "group": "string",
- "connected": true,
- "needsReboot": true,
- "os_family": "string",
- "compliant": true,
- "patches": {
- "id": 0,
- "packageVersionId": 0,
- "name": "string",
- "severity": "no_known_cves",
- "cve": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "patchTime": "2019-08-24T14:15:22Z",
- "needsApproval": true
}
}
]
}
}