Skip to main content

profiles

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

Overview

Nameprofiles
TypeResource
Idcloudflare.zero_trust.profiles

Fields

The following fields are returned by SELECT queries:

Get profile response.

NameDatatypeDescription
idstring (uuid)The id of the profile (uuid).
namestringThe name of the profile.
ai_context_enabledboolean
allowed_match_countinteger (int32)Related DLP policies will trigger when the match count exceeds the number set.
confidence_thresholdstring (low, medium, high, very_high) (default: low)
context_awarenessobjectScan the context of predefined entries to only return matches surrounded by keywords.
created_atstring (date-time)When the profile was created.
data_classesarrayData classes associated with this profile.
data_tagsarrayData tags associated with this profile.
descriptionstringThe description of the profile.
entriesarray
ocr_enabledboolean
open_accessbooleanWhether this profile can be accessed by anyone.
sensitivity_levelsarraySensitivity levels associated with this profile.
shared_entriesarray (x-stainless-terraform-configurability: computed)
typestring (custom)
updated_atstring (date-time)When the profile was lasted updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectaccount_id, profile_idFetches a DLP profile by ID.
listselectaccount_idallLists all DLP profiles in an account.
update_predefinedexecaccount_id, profile_idUpdates a DLP predefined profile. Only supports enabling/disabling entries.
create_configexecaccount_id, profile_idThis is similar to update_predefined but only returns entries that are enabled. This is needed for our terraform API Creates a DLP predefined profile. Only supports enabling/disabling entries.

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.
profile_idstring (uuid)
allbooleanReturn all profiles, including those that current account does not have access to.

SELECT examples

Fetches a DLP profile by ID.

SELECT
id,
name,
ai_context_enabled,
allowed_match_count,
confidence_threshold,
context_awareness,
created_at,
data_classes,
data_tags,
description,
entries,
ocr_enabled,
open_access,
sensitivity_levels,
shared_entries,
type,
updated_at
FROM cloudflare.zero_trust.profiles
WHERE account_id = '{{ account_id }}' -- required
AND profile_id = '{{ profile_id }}' -- required
;

Lifecycle Methods

Updates a DLP predefined profile. Only supports enabling/disabling entries.

EXEC cloudflare.zero_trust.profiles.update_predefined
@account_id='{{ account_id }}' --required,
@profile_id='{{ profile_id }}' --required
@@json=
'{
"ai_context_enabled": {{ ai_context_enabled }},
"allowed_match_count": {{ allowed_match_count }},
"confidence_threshold": "{{ confidence_threshold }}",
"context_awareness": "{{ context_awareness }}",
"entries": "{{ entries }}",
"ocr_enabled": {{ ocr_enabled }}
}'
;