The Device Assurance Policies API provides operations to manage device assurance policies in your organization.
Lists all device assurance policies
OK
Forbidden
Too Many Requests
[- {- "createdBy": "string",
- "createdDate": "string",
- "devicePostureChecks": {- "include": [- {- "variableName": "macOSFirewall",
- "value": "1"
 },
- {- "variableName": "windowsFirewall",
- "value": "1"
 }
 ]
 },
- "displayRemediationMode": "SHOW",
- "gracePeriod": {- "expiry": "2024-12-01T00:00:00Z",
- "type": "BY_DATE_TIME"
 },
- "id": "string",
- "lastUpdate": "string",
- "lastUpdatedBy": "string",
- "name": "string",
- "platform": "ANDROID",
- "_links": {- "self": {- "hints": {- "allow": [- "DELETE"
 ]
 },
- "href": "string",
- "name": "string",
- "templated": true,
- "type": "string"
 }
 }
 }
]Creates a new device assurance policy
| object (DevicePostureChecks)  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| displayRemediationMode | string 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| object (GracePeriod)  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name | string Display name of the device assurance policy | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| platform | string (Platform)  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| object (OSVersionFourComponents)  Current version of the operating system (maximum of four components in the versioning scheme) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Array of objects (OSVersionConstraint)   [ 1 .. 2 ] items  There are two types of OS requirements: 
 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|  Array ([ 1 .. 2 ] items) 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| secureHardwarePresent | boolean | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| object Settings for third-party signal providers (based on the  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
OK
Bad Request
Forbidden
Too Many Requests
{- "name": "Device assurance Android",
- "osVersion": {- "minimum": 12
 },
- "diskEncryptionType": {- "include": [- "USER",
- "FULL"
 ]
 },
- "jailbreak": false,
- "platform": "ANDROID",
- "screenLockType": {- "include": [- "BIOMETRIC"
 ]
 },
- "secureHardwarePresent": true
}{- "id": "dae3m8o4rWhwReDeM1c5",
- "name": "Device assurance Android",
- "lastUpdate": "2022-01-01T00:00:00.000Z",
- "createdUpdate": "2022-01-01T00:00:00.000Z",
- "lastUpdatedBy": "00u217pyf72CdUrBt1c5",
- "createdBy": "00u217pyf72CdUrBt1c5",
- "osVersion": {- "minimum": "12.4.5"
 },
- "diskEncryptionType": {- "include": [- "USER",
- "FULL"
 ]
 },
- "jailbreak": false,
- "platform": "ANDROID",
- "screenLockType": {- "include": [- "BIOMETRIC"
 ]
 },
- "secureHardwarePresent": true,
- "_links": {- "self": {
- "hints": {- "allow": [- "DELETE",
- "GET",
- "PUT"
 ]
 }
 }
 }
}Retrieves a device assurance policy by deviceAssuranceId
OK
Forbidden
Not Found
Too Many Requests
{- "id": "dae3m8o4rWhwReDeM1c5",
- "name": "Device assurance Android",
- "lastUpdate": "2022-01-01T00:00:00.000Z",
- "createdUpdate": "2022-01-01T00:00:00.000Z",
- "lastUpdatedBy": "00u217pyf72CdUrBt1c5",
- "createdBy": "00u217pyf72CdUrBt1c5",
- "osVersion": {- "minimum": "12.4.5"
 },
- "diskEncryptionType": {- "include": [- "USER",
- "FULL"
 ]
 },
- "jailbreak": false,
- "platform": "ANDROID",
- "screenLockType": {- "include": [- "BIOMETRIC"
 ]
 },
- "secureHardwarePresent": true,
- "_links": {- "self": {
- "hints": {- "allow": [- "DELETE",
- "GET",
- "PUT"
 ]
 }
 }
 }
}Replaces a device assurance policy by deviceAssuranceId
| object (DevicePostureChecks)  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| displayRemediationMode | string 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| object (GracePeriod)  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| name | string Display name of the device assurance policy | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| platform | string (Platform)  | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| object (OSVersionFourComponents)  Current version of the operating system (maximum of four components in the versioning scheme) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Array of objects (OSVersionConstraint)   [ 1 .. 2 ] items  There are two types of OS requirements: 
 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|  Array ([ 1 .. 2 ] items) 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| secureHardwarePresent | boolean | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| object Settings for third-party signal providers (based on the  | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
OK
Bad Request
Forbidden
Not Found
Too Many Requests
{- "name": "Device assurance Android",
- "osVersion": {- "minimum": 12
 },
- "diskEncryptionType": {- "include": [- "USER",
- "FULL"
 ]
 },
- "jailbreak": false,
- "platform": "ANDROID",
- "screenLockType": {- "include": [- "BIOMETRIC"
 ]
 },
- "secureHardwarePresent": true
}{- "id": "dae3m8o4rWhwReDeM1c5",
- "name": "Device assurance Android",
- "lastUpdate": "2022-01-01T00:00:00.000Z",
- "createdUpdate": "2022-01-01T00:00:00.000Z",
- "lastUpdatedBy": "00u217pyf72CdUrBt1c5",
- "createdBy": "00u217pyf72CdUrBt1c5",
- "osVersion": {- "minimum": "12.4.5"
 },
- "diskEncryptionType": {- "include": [- "USER",
- "FULL"
 ]
 },
- "jailbreak": false,
- "platform": "ANDROID",
- "screenLockType": {- "include": [- "BIOMETRIC"
 ]
 },
- "secureHardwarePresent": true,
- "_links": {- "self": {
- "hints": {- "allow": [- "DELETE",
- "GET",
- "PUT"
 ]
 }
 }
 }
}Deletes a device assurance policy by deviceAssuranceId. If the device assurance policy is currently being used in the org Authentication Policies, the delete will not be allowed.
No Content
Forbidden
Not Found
Conflict
Too Many Requests
{- "errorCode": "E0000006",
- "errorSummary": "You do not have permission to perform the requested action",
- "errorLink": "E0000006",
- "errorId": "sampleNUSD_8fdkFd8fs8SDBK",
- "errorCauses": [ ]
}