List software packages for an organization

Retrieves a list of all software packages discovered on all devices of an organization.

get
/orgs/{id}/packages

https://console.automox.com/api/orgs/{id}/packages
This will list all pending/installed updates and all installed applications for all devices.
Request
Response
Request
Path Parameters
id
optional
integer
Organization ID for retrieving package list
Query Parameters
includeUnmanaged
optional
boolean
Include applications Automox does not currently support for patching
awaiting
optional
boolean
Filter based installation status of package. awaiting=1: Packages that are currently available but not installed awaiting=0: Packages that are already installed
o
optional
integer
Organization ID. Required, if authenticated, the user has access to multiple organizations.
Response
200: OK
{
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"server_id": {
"type": "integer",
"format": "int64"
},
"package_id": {
"type": "integer",
"format": "int64"
},
"installed": {
"type": "boolean"
},
"ignored": {
"type": "boolean"
},
"deferred_until": {
"type": "string",
"format": "date-time"
},
"name": {
"type": "string"
},
"display_name": {
"type": "string"
},
"version": {
"type": "string"
},
"repo": {
"type": "string"
},
"group_ignored": {
"type": "boolean"
},
"group_deferred_until": {
"type": "string",
"format": "date-time"
},
"cves": {
"type": "array",
"items": {
"type": "string"
}
},
"cve_score": {
"type": "string"
},
"package_version_id": {
"type": "integer",
"format": "int64"
},
"os_name": {
"type": "string"
},
"os_version": {
"type": "string"
},
"os_version_id": {
"type": "integer",
"format": "int64"
},
"create_time": {
"type": "string",
"format": "date-time"
},
"requires_reboot": {
"type": "boolean"
},
"patch_classification_category_id": {
"type": "integer"
},
"is_managed": {
"type": "boolean"
},
"organization_id": {
"type": "integer"
},
"agent_severity": {
"type": "number"
},
"severity": {
"type": "string"
},
}
}
}

Example Requests

cURL
Python http.client
Python requests
C#
PowerShell
cURL
curl -X GET \
'https://console.automox.com/api/orgs/0000/packages?o=0000&awaiting=1&includeUnmanaged=0' \
-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,orgs,0000,packages", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Python requests
import requests
url = "https://console.automox.com/api/orgs/0000/packages"
querystring = {"o":"0000","awaiting":"1","includeUnmanaged":"0"}
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/orgs/0000/packages?o=0000&awaiting=1&includeUnmanaged=0");
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/orgs/0000/packages?o=0000&awaiting=1&includeUnmanaged=0'
$response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers).Content