List the command queue for a device

Returns the queue of upcoming commands for the specified device.

get
/servers/{id}/queues

https://console.automox.com/api/servers/{id}/queues
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": "object",
"required": [
"args",
"command_type_name",
"exec_time"
],
"example": {
"command_type_name": "InstallUpdate",
"args": "KB12345 KB67890",
"exec_time": "2017-06-29T16:39:50.951Z"
},
"properties": {
"id": {
"type": "integer",
"format": "int64"
},
"server_id": {
"type": "integer",
"format": "int64"
},
"policy_id": {
"type": "integer",
"format": "int64"
},
"command_id": {
"type": "integer",
"format": "int64"
},
"command_type_name": {
"type": "string",
"enum": [
"InstallUpdate",
"Reboot"
],
"description": "Type of command being issued"
},
"args": {
"type": "string",
"example": "\"KB12345 KB67890\"",
"description": "List of patches to apply, or NULL if issuing a Reboot"
},
"response": {
"type": "string"
},
"response_time": {
"type": "string",
"format": "date-time"
},
"create_time": {
"type": "string",
"format": "date-time"
},
"exec_time": {
"type": "string",
"format": "date-time",
"example": "2017-06-29T16:39:50.951Z",
"description": "Time to execute the command"
}
}
}

Example Requests

cURL
Python http.client
Python requests
C#
PowerShell
cURL
curl -X GET \
'https://console.automox.com/api/servers/123456/queues?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,queues", 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/queues"
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/queues?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/queues?o=0000"
$response = (Invoke-WebRequest -Method Get -Uri $url -Headers $headers).Content