com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_link3' is unknown.
Policy Management for Android Devices
This section provides the details of the REST API used to identify whether a policy is enforced on an Android device.
Identifying whether a Policy is Enforced on an Android Device
Description | When a device registers with WSO2 EMM, a policy is enforced on the device based on the policy enforcement criteria. Using this API you are able to identify if a specific device has a policy enforced or if no policy is enforced on the device. For more information on how a policy is applied on a device, see Managing Policies. |
---|---|
Resource Path | /{deviceId} |
URL |
|
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-android-agent/policy/{deviceId}
Example: Identify whether a policy is applied on the Android device having the device identifier 867115026844132. curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer e5c2ce5670b6f95e1514f4f9e722a722" -k -v https://localhost:9443/mdm-android-agent/policy/867115026844132 |
 Sample output | > GET /mdm-android-agent/policy/867115026844132 HTTP/1.1 > User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8| zlib/1.2.5 > Host: localhost:9443 > Accept: */* > Content-Type: application/json > Authorization: Bearer e5c2ce5670b6f95e1514f4f9e722a722 > < HTTP/1.1 200 OK < Date: Tue, 22 Mar 2016 01:48:17 GMT < Content-Type: application/json < Content-Length: 77 < Server: WSO2 Carbon Server < {"responseCode":"OK","responseMessage":"Effective policy added to operation"} |
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.