Get Device Commands
This request returns the completed and pending MDM command for a specified Device ID.
MDM Status Codes
- 1 : Command is Pending
- 2 : Command is running
- 3 : Command completed
- 4 : Command failed
- 5 : Command received "Not Now" response.
Parameters
Parameter | Description |
---|---|
Device ID | - |
Example Output
{
"commands": {
"count": 0,
"next": "string",
"previous": "string",
"results": [
{
"attempts": 0,
"command_type": "string",
"date_completed": "string",
"date_requested": "string",
"error_chain": [
{
"code": 12021,
"domain": "MCMDMErrorDomain",
"localized_description": "“ActivationLockBypassCode” is not a valid request type.",
"us_english_description": "“ActivationLockBypassCode” is not a valid request type."
}
],
"last_pushed": "string",
"metadata": {},
"priority": 0,
"request_requires_network_tether": false,
"request_type": "string",
"status": 0,
"user": {
"first_name": "Apple",
"last_name": "TESTTTTTT"
},
"uuid": "string"
}
]
},
"device_id": "string"
}
Workflow Library Example
Get Device Commands with Kandji and Send Results Via Email