Skip to main content

posture_integration

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

Overview

Nameposture_integration
TypeResource
Idcloudflare.zero_trust.posture_integration

Fields

The following fields are returned by SELECT queries:

Get device posture integration details response.

NameDatatypeDescription
idstringAPI UUID. (example: f174e90a-fafe-4643-bbbc-4a0ed4fc8415)
namestringThe name of the device posture integration. (example: My Workspace One Integration)
configobjectThe configuration object containing third-party integration information.
intervalstringThe interval between each posture check with the third-party API. Use m for minutes (e.g. 5m) and h for hours (e.g. 12h). (example: 10m)
typestringThe type of device posture integration. (workspace_one, crowdstrike_s2s, uptycs, intune, kolide, tanium_s2s, sentinelone_s2s, custom_s2s) (example: workspace_one)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectintegration_id, account_idFetches details for a single device posture integration.
listselectaccount_idFetches the list of device posture integrations for an account.
createinsertaccount_id, name, type, interval, configCreate a new device posture integration.
deletedeleteintegration_id, account_idDelete a configured device posture integration.

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
account_idstringThe Cloudflare account ID.
integration_idstring

SELECT examples

Fetches details for a single device posture integration.

SELECT
id,
name,
config,
interval,
type
FROM cloudflare.zero_trust.posture_integration
WHERE integration_id = '{{ integration_id }}' -- required
AND account_id = '{{ account_id }}' -- required
;

INSERT examples

Create a new device posture integration.

INSERT INTO cloudflare.zero_trust.posture_integration (
config,
interval,
name,
type,
account_id
)
SELECT
'{{ config }}' /* required */,
'{{ interval }}' /* required */,
'{{ name }}' /* required */,
'{{ type }}' /* required */,
'{{ account_id }}'
RETURNING
errors,
messages,
result,
success
;

DELETE examples

Delete a configured device posture integration.

DELETE FROM cloudflare.zero_trust.posture_integration
WHERE integration_id = '{{ integration_id }}' --required
AND account_id = '{{ account_id }}' --required
;