Pre patch report

Retrieve the pre-patch report.

SecuritybearerAuth
Request
query Parameters
o
required
integer

Organization ID. The organization will be assumed based on the API key, if not specified.

groupId
integer

The ID of the server group for limiting results. If omitted, results will include all groups.

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

503

Service Unavailable

default

Invalid Request

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": "no_known_cves",
          • "cve": "string",
          • "createTime": "2019-08-24T14:15:22Z",
          • "patchTime": "2019-08-24T14:15:22Z",
          • "needsApproval": true
          }
        }
      ]
    }
}