com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_link3' is unknown.
Getting Details of a Policy
Description | Retrieve the details of a selected policy in WSO2 EMM. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Resource Path | /{id} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
URL | /mdm-admin/policies/{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/policies/{id}
Example: Retrieve the policy details of the policy having the ID curl -X GET -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -k -v https://localhost:9443/mdm-admin/policies/1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
 Sample output | > GET /mdm-admin/policies/1 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: Thu, 25 Feb 2016 09:53:45 GMT < Content-Type: application/json < Content-Length: 652 < Server: WSO2 Carbon Server {"id":1,"priorityId":1,"profile":{"profileId":1,"profileName":"Camera","tenantId":-1234,"deviceType":{"id":1,"name":"android"},"createdDate":"Feb 25, 2016 12:00:18 PM","updatedDate":"Feb 25, 2016 12:00:18 PM","profileFeaturesList":[{"id":1,"featureCode":"CAMERA","profileId":1,"deviceTypeId":1,"content":"{\"enabled\":true}"}]},"policyName":"Camera","generic":false,"roles":[],"ownershipType":"ANY","devices":[],"users":[],"active":false,"updated":false,"description":"Optional","compliance":"enforce","policyCriterias":[],"tenantId":-1234,"profileId":1} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Sample JSON Definition | { "id":1, "priorityId":1, "profile":{ "profileId":1, "profileName":"Camera", "tenantId":-1234, "deviceType":{ "id":1, "name":"android" }, "createdDate":"Feb 25, 2016 12:00:18 PM", "updatedDate":"Feb 25, 2016 12:00:18 PM", "profileFeaturesList":[ { "id":1, "featureCode":"CAMERA", "profileId":1, "deviceTypeId":1, "content":"{\"enabled\":true}" } ] }, "policyName":"Camera", "generic":false, "roles":[ ], "ownershipType":"ANY", "devices":[], "users":[], "active":false, "updated":false, "description":"Optional", "compliance":"enforce", "policyCriterias":[], "tenantId":-1234, "profileId":1 }
|
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.