Pre-Patch Report

Retrieve the pre-patch report.

Request
Security:
query Parameters
o
required
integer

Organization ID. If omitted, results will include all organizations for the authenticated user.

groupId
integer

The ID of the server group for limiting results

limit
integer >= 1
Default: 250

Limit number of results returned per page. Typically used in combination with offset

offset
integer
Default: 250

Specifies the offset. For example, if you are paging 250 at a time, you could specify 250 for the 2nd page and 500 for the 3rd, etc.

Responses
200

Successful Operation

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

get/reports/prepatch
Request samples
$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
Response samples
application/json
{
  • "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": "string",
          • "cve": "string",
          • "createTime": "2019-08-24T14:15:22Z",
          • "patchTime": "2019-08-24T14:15:22Z",
          • "needsApproval": true
          }
        }
      ]
    }
}