List policy compliance stats

Retrieve policy compliance statistics for all policies.

SecuritybearerAuth
Request
query Parameters
o
required
integer

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

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/policystats
Request samples
$apiKey = 'your_automox_api_key'
$headers = @{ "Authorization" = "Bearer $apiKey" }
$url = "https://console.automox.com/api/policystats?o=0000"
Invoke-WebRequest -Method GET -Uri $url -Headers $headers
Response samples
application/json
[
  • {
    • "compliant": 0,
    • "noncompliant": 0,
    • "organization_id": 0,
    • "pending": 0,
    • "policy_id": 0,
    • "policy_name": "string",
    • "policy_type_name": "patch"
    }
]