A sample resource definition, together with details on the information that is added in the JSON are as follows:
...
Property | Description | Data Type | Example | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| The name of the policy that is applied to the Windows device. | Yes | N/A | String | |||||||
| The action that the monitoring task takes when a policy is violated. The following are the three types of actions that can be applied: Enforce,Warn,Monitor. | Yes | N/A | String | Enforce | ||||||
| The ownership type of the device. The ownership type named cope is not supported when working with Windows 8.1. | Yes | BYOD | String | BYOD | ||||||
| Profile details. | Yes | N/A | ||||||||
| The name of the profile being added. | Yes | N/A | String | Marketing profile | ||||||
| The code used to define the type of the device platform. The code 2 is used to define the Windows platform. | Yes | 2 | Integer | 2 | ||||||
| The list of features that belong to the selected profile. | Yes | N/A | ||||||||
| The role that this passcode can be applied to. If you wish to apply this policy to any policy, state ANY . Otherwise, specify the respective name of the role. | Yes | N/A | ANY |
...
Property | Description | Data Type | Example | ||
---|---|---|---|---|---|
featureCode | The code which that defines as to which the policy you wish to add. The available feature codes are as follows: PASSCODE_POLICY, CAMERA and ENCRYPT_STORAGE. | Yes | String | PASSCODE_POLICY | |
deviceTypeId | The code used to define the type of the device platform. The code 2 is used to define the Windows platform. | Yes | 2 | Integer | 2 |
content | The list of parameters that define the policy. For more information, see profileFeaturesList - policy based. | Yes | N/A |
...