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
o
required
integer
Organization ID for the specified device
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"
},
"software_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"
},
"severity": {
"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",
"format": "int64"
},
"patch_scope": {
"type": "string"
},
"is_uninstallable": {
"type": "boolean"
},
"secondary_id": {
"type": "string"
},
"is_managed": {
"type": "boolean"
},
"impact": {
"type": "integer",
"format": "int64"
},
"organization_id": {
"type": "integer",
"format": "int64"
},
"agent_severity": {
"type": "string"
},
}
}
}

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