Get Pending Commands
Request
URI
GET
https://{api_host}/api/devices/{device_id}/commands
COPY
Responses
200
Returns
devicemgmtGetCommandResponse
of type(s)
*/*
{
"commandMessage": [
{
"deviceId": "string",
"lastUpdatedTime": "string",
"asRoot": false,
"command": "string",
"arguments": [
{
"type": "string",
"name": "string",
"value": [
"string"
]
}
],
"createdTime": "string",
"clientId": "string",
"commandId": "string",
"execPath": "string",
"name": "string"
}
]
}
array of
object
commandMessage
Optional
commandMessage
404
Not Found
Operation doesn't return any data structure
Code Samples
COPY
curl -H 'Authorization: <value>' https://{api_host}/api/devices/{device_id}/commands
Device Command Service Operations
GET
List Commands
PUT
Update Commands Status
POST
Invoke Command
GET
Get Pending Commands