List software packages for a device

Returns the software packages for the specified device.

get
/servers/{id}/packages

https://console.automox.com/api/servers/{id}/packages
Packages Include: Pending updates and currently installed updates/applications
Request
Response
Request
Path Parameters
id
required
integer
Server ID for the specified device
Headers
Authorization: Bearer
required
string
Your Automox API Key for authentication Format: Authorization: Bearer your_automox_api_key
Query Parameters
limit
optional
integer
A limit on the number of results to be returned; between 1 and 500 with a default of 500. Use in conjunction with the page parameter. See About Automox API > Pagination.
page
optional
integer
The page of results you want to be returned with page numbers starting at 0. Use in conjunction with the limit parameter. See About Automox API > Pagination.
o
required
integer
Organization ID for the specified device
Response
200: OK
[
{
"id": 123456789,
"server_id": 234567,
"package_id": 219436183,
"software_id": 53655,
"installed": true,
"ignored": false,
"group_ignored": false,
"deferred_until": null,
"group_deferred_until": null,
"name": "string",
"display_name": "string",
"version": "3.0",
"repo": "string",
"cves": null,
"cve_score": null,
"agent_severity": null,
"severity": null,
"package_version_id": 221441124,
"os_name": "string",
"os_version": "10.15.1",
"os_version_id": 1759,
"create_time": "2019-10-12T03:13:19+0000",
"requires_reboot": false,
"patch_classification_category_id": null,
"patch_scope": null,
"is_uninstallable": false,
"secondary_id": null,
"is_managed": true,
"impact": null,
"organization_id": 1234
}
]

Example Requests

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