Advanced Search for Devices via the Console
Description | Carry out an advanced search via the EMM console. For more information on the search workflow, see Advanced Device Search on WSO2 EMM. | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Resource Path | / | ||||||||||||||||||
URL | /mdm-admin/search | ||||||||||||||||||
HTTP Method | POST | ||||||||||||||||||
Request/Response Format | application/json | ||||||||||||||||||
cURL command | curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer <EMM_API_TOKEN>" -d @'<JSON_PAYLOAD>' -k -v https://<EMM_HOST>:<EMM_HTTPS_PORT>/mdm-admin/search
Example: Getting all the operations that can be carried out by the android device type. curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -d @'search.json' -k -v https://localhost:9443/mdm-admin/search | ||||||||||||||||||
 Sample output | > POST /mdm-admin/search HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a > Content-Length: 231 < HTTP/1.1 200 OK < Date: Thu, 31 Mar 2016 12:24:37 GMT < Content-Type: application/json < Content-Length: 2 < Server: WSO2 Carbon Server | ||||||||||||||||||
Sample JSON output Definition | { "conditions": [ { "key": "BATTERY_VOLTAGE", "value": "40", "operator": "=", "state": "AND" }, { "key": "CPU_USAGE", "value": "40", "operator": ">", "state": "OR" }, { "key": "LOCATION", "value": "Colombo", "operator": "=", "state": "AND" } ] }
|