com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_link3' is unknown.
Setting Up a VPN Policy on Android Devices
Description | Set up a VPN on your Android devices remotely. It allows the device to access secured resources on the intranet of an Organization. | |||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Resource Path |
| |||||||||||||||||||||||||||||||||||||||||||||||||||
URL | /mdm-admin/policies/inactive-policy or /mdm-admin/policies/active-policy | |||||||||||||||||||||||||||||||||||||||||||||||||||
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/policies/inactive-policy or 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/policies/active-policy
Example: curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -d @'policy.json' -k -v https://localhost:9443/mdm-admin/policies/inactive-policy or curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a" -d @'policy.json' -k -v https://localhost:9443/mdm-admin/policies/active-policy | |||||||||||||||||||||||||||||||||||||||||||||||||||
Sample output | > POST /mdm-admin/policies/active-policy HTTP/1.1 > Host: localhost:9443 > User-Agent: curl/7.43.0 > Accept: */* > Content-Type: application/json > Authorization: Bearer 33392fb365b3ac693b405b565ddc8a3a > Content-Length: 420 < HTTP/1.1 201 Created < Date: Thu, 25 Feb 2016 06:30:18 GMT < Content-Type: application/json < Content-Length: 76 < Server: WSO2 Carbon Server {"statusCode":201,"messageFromServer":"Policy has been added successfully."} | |||||||||||||||||||||||||||||||||||||||||||||||||||
Sample JSON Definition | { "policyName":"VPN", "description":"", "compliance":"enforce", "ownershipType":"ANY", "profile":{ "profileName":"vpn", "deviceType":{ "id":1 }, "profileFeaturesList":[ { "featureCode":"VPN", "deviceTypeId":1, "content":{ "serverAddress":"abc.com", "serverPort":"1234", "sharedSecret":"wso2", "dnsServer":"1.1.1.1" } } ] }, "roles":[ "ANY" ] }
|
com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.