Return a non-compliant devices report

Returns the non-compliant devices report.

get
/reports/noncompliance

https://console.automox.com/api/reports/noncompliance
Request
Response
Request
Query Parameters
o
optional
integer
The ID of the organization.
groupId
optional
integer
The ID of the server group for limiting results.
limit
optional
integer
Limit number of results returned per page. Typically used in combination with offset.
offset
optional
integer
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.
Response
200: OK
{
"type": "object",
"properties": {
"total": {
"type": "integer",
"format": "int64"
},
"low": {
"type": "integer",
"format": "int64"
},
"medium": {
"type": "integer",
"format": "int64"
},
"high": {
"type": "integer",
"format": "int64"
},
"other": {
"type": "integer",
"format": "int64"
},
"devices": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
},
"customName": {
"type": "string"
},
"serverCreateTime": {
"type": "string",
"format": "date-time"
},
"lastCheckinTime": {
"type": "string",
"format": "date-time"
},
"lastRefreshTime": {
"type": "string",
"format": "date-time"
},
"needsReboot": {
"type": "boolean"
},
"groupId": {
"type": "integer",
"format": "int64"
},
"os_family": {
"type": "string"
},
"policies": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"reasonForFail": {
"type": "string"
},
"policyCreateTime": {
"type": "string",
"format": "date-time"
},
"severity": {
"type": "string"
},
"packages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
},
"severity": {
"type": "string"
},
"packageVersionId": {
"type": "integer",
"format": "int64"
},
"createTime": {
"type": "string",
"format": "date-time"
}
}
}
}
}
}
}
}
}
}
}
}
504: Gateway Time-out
Use limit and offset to prevent timeouts on large datasets.
{
"type": "object",
"properties": {
"total": {
"type": "integer",
"format": "int64"
},
"low": {
"type": "integer",
"format": "int64"
},
"medium": {
"type": "integer",
"format": "int64"
},
"high": {
"type": "integer",
"format": "int64"
},
"other": {
"type": "integer",
"format": "int64"
},
"devices": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
},
"customName": {
"type": "string"
},
"serverCreateTime": {
"type": "string",
"format": "date-time"
},
"lastCheckinTime": {
"type": "string",
"format": "date-time"
},
"lastRefreshTime": {
"type": "string",
"format": "date-time"
},
"needsReboot": {
"type": "boolean"
},
"groupId": {
"type": "integer",
"format": "int64"
},
"os_family": {
"type": "string"
},
"policies": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
},
"type": {
"type": "string"
},
"reasonForFail": {
"type": "string"
},
"policyCreateTime": {
"type": "string",
"format": "date-time"
},
"severity": {
"type": "string"
},
"packages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"name": {
"type": "string"
},
"severity": {
"type": "string"
},
"packageVersionId": {
"type": "integer",
"format": "int64"
},
"createTime": {
"type": "string",
"format": "date-time"
}
}
}
}
}
}
}
}
}
}
}
}

cURL
Python http.client
Python requests
C#
PowerShell
cURL
curl -X GET \
'https://console.automox.com/api/reports/noncompliance?o=0000&groupId=12345&limit=10&offset=20' \
-H 'Authorization: Bearer your_automox_api_key'
Python http.client
import http.client
conn = http.client.HTTPConnection("console,automox,com")
headers = {
'Authorization': "Bearer your_automox_api_key"
}
conn.request("GET", "api,reports,noncompliance", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Python requests
import requests
url = "https://console.automox.com/api/reports/noncompliance"
querystring = {"o":"0000","groupId":"12345","limit":"10","offset":"20"}
headers = {
'Authorization': "Bearer your_automox_api_key"
}
response = requests.request("GET", url, headers=headers, params=querystring)
print(response.text)
C#
var client = new RestClient("https://console.automox.com/api/reports/noncompliance?o=0000&groupId=12345&limit=10&offset=20");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer your_automox_api_key");
IRestResponse response = client.Execute(request);
PowerShell
$apiKey = 'your_automox_api_key'
$headers = @{ "Authorization" = "Bearer $apiKey" }
$url = 'https://console.automox.com/api/reports/noncompliance?o=0000&groupId=12345&limit=10&offset=20'
$response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers).Content