Getting Pagination Details for Operations on a Device
Description | You will carry out many operations on a device. In a situation where you wish to view the all the operations carried out on a device it is not feasible to show all the details on one page therefore the details are paginated. Example: You carry out 21 operations via a given device. When you wish to see the operations carried out, the details of the 21 operations will be broken down into 3 pages with 10 operation details per page. | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Resource Path | pagination/{type}/{id} | ||||||||||||||||
URL | /mdm-admin/operations/paginate/{type}/{id}
| ||||||||||||||||
HTTP Method | GET | ||||||||||||||||
Request/Response Format | application/json | ||||||||||||||||
cURL command | curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer <EMM_API_TOKEN>" -k -v https://<EMM_HOST>:<EMM_HTTPS_PORT>/mdm-admin/paginate/operation/{type}/{id}
Example: curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -k -v https://localhost:9443/mdm-admin/paginate/operations/ios/f409r4c55924rt4af9a44tts15y9d6cd56h1047d Filter the device details using the query parameters given below:
| ||||||||||||||||
Sample output | > GET /mdm-admin/operations/paginate/ios/f409r4c55924rt4af9a44tts15y9d6cd56h1047d HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a < HTTP/1.1 200 OK < Cache-Control: private < Expires: Thu, 01 Jan 1970 05:30:00 IST < Date: Tue, 23 Feb 2016 05:23:56 GMT < Content-Type: application/json < Content-Length: 3785 < Server: WSO2 Carbon Server {"recordsTotal":6,"recordsFiltered":6,"draw":0,"data":[ {"code":"DEVICE_INFO","type":"COMMAND","id":38,"status":"PENDING","receivedTimeStamp":"","createdTimeStamp":"2016-02-23 10:51:22.06","isEnabled":false},{"code":"APPLICATION_LIST","type":"COMMAND","id":37,"status":"PENDING","receivedTimeStamp":"","createdTimeStamp":"2016-02-23 10:51:20.755","isEnabled":false}]} | ||||||||||||||||
Sample JSON Output Definition | { "code":"ALARM", "type":"COMMAND", "id":34, "status":"COMPLETED", "receivedTimeStamp":"2016-02-23 09:57:22.113", "createdTimeStamp":"2016-02-23 09:57:21.113", "isEnabled":false },
|