default_device_posture_checks
Creates, updates, deletes, gets or lists a default_device_posture_checks resource.
Overview
| Name | default_device_posture_checks |
| Type | Resource |
| Id | okta.device_posture_checks.default_device_posture_checks |
Fields
The following fields are returned by SELECT queries:
- list_default_device_posture_checks
| Name | Datatype | Description |
|---|---|---|
id | string | The ID of the device posture check (example: dch3m8o4rWhwReDeM1c5) |
name | string | Display name of the device posture check (example: Device posture check macOS) |
_links | object | Specifies link relations (see Web Linking) available using the JSON Hypertext Application Language specification. This object is used for dynamic discovery of related resources and lifecycle operations. |
createdBy | string | User who created the device posture check (example: 00u217pyf72CdUrBt1c5) |
createdDate | string | Time the device posture check was created (example: 2019-10-02T18:03:07.000Z) |
description | string | Description of the device posture check (example: Query macOS devices to check if firewall is enabled) |
lastUpdate | string | Time the device posture check was updated (example: 2019-10-02T18:03:07.000Z) |
lastUpdatedBy | string | User who updated the device posture check (example: 00u217pyf72CdUrBt1c5) |
mappingType | string | Represents how the device posture check is rendered in device assurance policies |
platform | string | |
query | string | OSQuery for the device posture check (example: SELECT CASE WHEN global_state = 0 THEN 0 ELSE 1 END AS firewall_enabled FROM alf;) |
remediationSettings | object | Represents the remediation instructions shown to the end user when the device posture check fails |
type | string | |
variableName | string | Unique name of the device posture check (example: macOSFirewall) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_default_device_posture_checks | select | subdomain | Lists all default device posture checks. Default device posture checks are defined by Okta. Their type will always be BUILTIN. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
subdomain | string | The domain of your organization. This can be a provided subdomain of an official okta domain (okta.com, oktapreview.com, etc) or one of your configured custom domains. (default: my-org) |
SELECT examples
- list_default_device_posture_checks
Lists all default device posture checks. Default device posture checks are defined by Okta. Their type will always be BUILTIN.
SELECT
id,
name,
_links,
createdBy,
createdDate,
description,
lastUpdate,
lastUpdatedBy,
mappingType,
platform,
query,
remediationSettings,
type,
variableName
FROM okta.device_posture_checks.default_device_posture_checks
WHERE subdomain = '{{ subdomain }}' -- required
;