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
required
integer
Organization ID for retrieving package list
Query Parameters
o
required
integer
limit
optional
integer
Maximum number of software packages for an organization to retrieve per page. Use in conjunction with the page parameter. See About Automox API > Pagination.
page
optional
integer
Retrieve a specific page from the list of software packages. Use in conjunction with the limit parameter. See About Automox API > Pagination.
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
Response
200: OK
Example to show types of returned data for one of the packages
[
{
"id": 1234567890,
"server_id": 123456,
"package_id": 220760130,
"software_id": 732165,
"installed": true,
"ignored": false,
"group_ignored": false,
"deferred_until": null,
"group_deferred_until": null,
"name": "string",
"display_name": "2020-05 Cumulative Update for .NET Framework 3.5, 4.7.2 and 4.8 for Windows 10 Version 1809 for x64 (KB4556441)",
"version": "201",
"repo": "WindowsUpdate",
"cves": [
"CVE-2020-0605",
"CVE-2020-1108"
],
"cve_score": "9.0",
"agent_severity": "5.0",
"severity": "critical",
"package_version_id": 223683223,
"os_name": "10 Pro",
"os_version": "10.0.17763",
"os_version_id": 2084,
"create_time": "2020-05-12T17:16:52+0000",
"requires_reboot": false,
"patch_classification_category_id": null,
"patch_scope": null,
"is_uninstallable": false,
"secondary_id": "KB4556441",
"is_managed": true,
"impact": 0,
"organization_id": 1234
}
]

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