Description | The Android agent communicates with the server to get the pending operations that are queued up at the server end for a given device, using this REST API. While getting the pending operations the details of the operations executed at the device end is shared with the server. The following diagrams will help you clearly understand how the get pending operations API functions. | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Resource Path | /{id} | ||||||||||||||||
URL | /mdm-android-agent/operation/{id} | ||||||||||||||||
HTTP Method | PUT | ||||||||||||||||
Request/Response Format | application/json | ||||||||||||||||
cURL command | curl -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer <EMM_API_TOKEN>" -k -v https://<EMM_HOST>:<EMM_HTTPS_PORT>/mdm-android-agent/operation/{id}
Example: curl -X PUT -H "Content-Type: application/json" -H "Authorization: Bearer e56974e8bf5df15748f89c6c5da9835d" -d @'operation.json' -k -v https://localhost:9443/mdm-android-agent/operation/185678093073333 | ||||||||||||||||
Sample output | > PUT /mdm-android-agent/operation/185678093073333 HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer e56974e8bf5df15748f89c6c5da9835d < HTTP/1.1 200 OK < Date: Sun, 20 Mar 2016 06:45:49 GMT < Content-Type: application/json < Content-Length: 1929 < Server: WSO2 Carbon Server [{"code":"REBOOT","type":"COMMAND","id":5,"status":"COMPLETED","createdTimeStamp":"2016-03-07 00:30:02.152","isEnabled":false},{"code":"UPGRADE_FIRMWARE","type":"COMMAND","id":6,"status":"PENDING","createdTimeStamp":"2016-03-07 00:34:15.027","isEnabled":false},{"code":"APPLICATION_LIST","type":"COMMAND","id":7,"status":"PENDING","createdTimeStamp":"2016-03-11 14:21:42.771","isEnabled":false},{"code":"DEVICE_INFO","type":"COMMAND","id":8,"status":"COMPLETED","createdTimeStamp":"2016-03-11 14:21:42.78","isEnabled":false},{"code":"APPLICATION_LIST","type":"COMMAND","id":9,"status":"PENDING","createdTimeStamp":"2016-03-18 13:47:08.0","isEnabled":false},{"code":"DEVICE_INFO","type":"COMMAND","id":10,"status":"PENDING","createdTimeStamp":"2016-03-18 13:47:08.019","isEnabled":false},{"code":"DEVICE_LOCK","type":"COMMAND","id":11,"status":"PENDING","createdTimeStamp":"2016-03-18 13:48:20.663","isEnabled":false}}] | ||||||||||||||||
Sample JSON Definition | { "code": "REBOOT", "type": "COMMAND", "id": 5, "status": "COMPLETED", "createdTimeStamp": "2016-03-07 00:30:02.152", "isEnabled": false }
|
Unknown macro: {next_previous_link3}
General
Content
Integrations