Skip to main content
Skip table of contents

Diagnostics profiles (API)

Diagnostics parameters

Use these parameters in the JSON data structure when you apply the Diagnostics policy (POLICY_CODE_DIAGNOSTICS) to the app with app-market/policy.

ParameterDescription
diagnosticsLogClassesA list of JSON objects with name of log to set/enable and severity keys.
restrictInfoScreen

0: Default. Secured apps include an Information menu.

1: Block the Information menu from apps secured with this profile.

This table lists the strings used in the JSON code:

Logging classString

Atlas Client PERP (Policy/Enrollment/Reporting)

acp

Client

client

Connect

connect

Data Security Framework (Cryptographic Operations)

dsf

Data-At-Restdar

Map.Next Generic (default)

default

Policy

policy

Tunnel Driver

vsDriver

Tunnel Internal

vsInternal

Tunnel IP Stack

vsIp

Tunnel Packet

packet

Tunnel Socket

socket

Tunnel TCP Stack

vsTcp

Tunnel UDP Stack

vsUdp

Virtual Tunnel Control

vnet

This table lists the external log classes by index. These classes appear in the same diagnosticsLogClasses structure as the above.

Logging classIndex
Crypto4
FileIO3
Foundation2
Http6
Injectable0
KeyStore1

Severity levels:

 Severity levelString
0Debugdebug
1Informationalinfo
2Warningwarn
3Minor errorminor
4Major errormajor
5Critical errorcrit

Diagnostics API resources

To manage Diagnostics profiles:

  • profile: Use type="diagnostics" to create a Diagnostics profile. See example below.
  • profile/catalog/{policytype}: Use "diagnostics" for "{policytype}". GET returns an array of details for all policy profiles of the specified type.
  • profile/{GUID}: Use the profile ID to specify a policy profile. GET returns details for the specified profile, PUT updates the details in the specified profile, and DELETE archives the profile.
  • settings/diagnostics-default-profile (settings/{policytype}-default-profile):  POST sets one of the Diagnostics profiles as the default. GET returns the GUID of the current default profile. DELETE archives the current default.

To retrieve details for the policy:

  • app-policy/{GUID}: Use the policy ID to specify a policy. GET returns details for the specified policy.
  • app-policy/code/{code}: Use POLICY_CODE_DIAGNOSTICS to specify the policy. GET returns details for the specified policy.

To secure apps with Diagnostics policy:

Creating a Diagnostics profile

This example creates a Diagnostics profile with the profile API.

Request

BASH
curl -k -v -L -b c.txt -c c.txt -X POST https://bc.qwe.com:443/mocana-app-control/rest/profile \
  -F name="TestProfile" \
  -F type="diagnostics" \
  -F desc="Default Profile" \
  -F data="{\"diagnosticsLogClasses\":[{\"name\":\"connect\",\"severity\":\"crit\"},
    {\"name\":\"dsf\",\"severity\":\"crit\"},{\"name\":\"acp\",\"severity\":\"crit\"},
    {\"name\":\"socket\",\"severity\":\"major\"},{\"name\":\"policy\",\"severity\":\"info\"},
    {\"name\":\"vsIp\",\"severity\":\"minor\"},{\"name\":\"vsUdp\",\"severity\":\"crit\"},
    {\"name\":\"vsDriver\",\"severity\":\"warn\"},{\"name\":\"1\",\"severity\":\"debug\",\"index\":1},
    {\"name\":\"3\",\"severity\":\"crit\",\"index\":3},{\"name\":\"6\",\"severity\":\"crit\",\"index\":6}],
    \"restrictInfoScreen\":\"1\"}"

On this page

Related topics

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.