settings/{policytype}-default-profile
The default profile for the specified policy type:
- settings/app-customization-default-profile. App Customization policy
- settings/browser-default-profile: Browser Configuration policy
- settings/client-certs-default-profile: Client Certificates policy
- settings/dar-default-profile: DAR Encrypted Data at Rest policy
- settings/data-sharing-default-profile: Data Sharing policy
- settings/device-posture-default-profile: Integrity and Posture policy
- settings/diagnostics-default-profile: Diagnostics policy
- settings/end-user-license-agreement-default-profile: End User License Agreement policy
- settings/local-auth-default-profile: Local App Authentication policy
- settings/master-default-profile: Master policy profiles
- settings/secure-web-stack-default-profile: Secure Web Stack policy
- settings/signing-default-profile: Signing profiles (API)
- settings/trusted-server-certs-profile: Trusted Server Certificates policy
- settings/vpn-default-profile: Secure Microtunnel policy
GET
Returns the GUID for the default profile.
Example request
Request
CODE
curl -b c.txt -c c.txt -X GET https://bc.qwe.com/mocana-app-control/rest/settings/browser-default-profile
Response
CODE
{
"message": "",
"settings": [{
"code": "OPT_CODE_DEVICE_POSTURE_PROFILE_DEFAULT",
"string_data": "d9f88213-6a50-42e3-a84b-de3816e58671"
}],
"status": "OK"
}
Note that the settings object in the response JSON would be empty if no default profile is set.
POST
Sets one of the profiles as the default profile for the specified policy type.
Parameters
Parameter | Description |
---|---|
profileId | Required. The GUID for the profile you want to set as default. You can get the GUID for all available profiles of the specified policy type with the profile/catalog/{policytype} endpoint, for example, GET profile/catalog/dar. |
Example request
Request
CODE
curl -b c.txt -c c.txt -X POST https://bc.qwe.com/mocana-app-control/rest/settings/browser-default-profile \
-d profileId=2b512006-e115-4c8b-92d3-929ee307d17b
DELETE
Resets the default profile, so that there is no default profile of the specified policy type
Example request
Request
CODE
curl -v -L -b c.txt -c c.txt -X DELETE \
https://bc.qwe.com/mocana-app-control/rest/settings/client-certs-default-profile
Response
CODE
{
"message": "",
"settings": [],
"status": "OK"
}