List Policy Compliance Stats

Retrieve policy compliance statistics for all policies.

Request
Security:
query Parameters
o
required
integer

Organization ID for retrieving policy stats. Omit this to retrieve stats for policies in all organizations that the authenticated user can access

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/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"
    }
]