Skip to main content

default_device_posture_checks

Creates, updates, deletes, gets or lists a default_device_posture_checks resource.

Overview

Namedefault_device_posture_checks
TypeResource
Idokta.device_posture_checks.default_device_posture_checks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the device posture check (example: dch3m8o4rWhwReDeM1c5)
namestringDisplay name of the device posture check (example: Device posture check macOS)
_linksobjectSpecifies 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.
createdBystringUser who created the device posture check (example: 00u217pyf72CdUrBt1c5)
createdDatestringTime the device posture check was created (example: 2019-10-02T18:03:07.000Z)
descriptionstringDescription of the device posture check (example: Query macOS devices to check if firewall is enabled)
lastUpdatestringTime the device posture check was updated (example: 2019-10-02T18:03:07.000Z)
lastUpdatedBystringUser who updated the device posture check (example: 00u217pyf72CdUrBt1c5)
mappingTypestringRepresents how the device posture check is rendered in device assurance policies
platformstring
querystringOSQuery for the device posture check (example: SELECT CASE WHEN global_state = 0 THEN 0 ELSE 1 END AS firewall_enabled FROM alf;)
remediationSettingsobjectRepresents the remediation instructions shown to the end user when the device posture check fails
typestring
variableNamestringUnique name of the device posture check (example: macOSFirewall)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_default_device_posture_checksselectsubdomainLists 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.

NameDatatypeDescription
subdomainstringThe 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

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
;