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.

action
required
string

Specify the action to be taken. Possible values: remediateAll, remediateServer Format: action=remediateServer

Enum: "remediateAll" "remediateServer"
serverId
integer

Specify the specific Server to run the policy for. Only applicable when action is set to "remediateServer" Format: serverId=123456

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

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