Skip to main content

profiles_predefined

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

Overview

Nameprofiles_predefined
TypeResource
Idcloudflare.zero_trust.profiles_predefined

Fields

The following fields are returned by SELECT queries:

Predefined 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 predefined DLP profile by id.
dlp_profiles_create_predefined_profileinsertaccount_id, profile_idCreates a DLP predefined profile. Only supports enabling/disabling entries.
delete_by_accountdeleteaccount_id, profile_idThis is a no-op as predefined profiles can't be deleted but is needed for our generated terraform API.

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)

SELECT examples

Fetches a predefined 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_predefined
WHERE account_id = '{{ account_id }}' -- required
AND profile_id = '{{ profile_id }}' -- required
;

INSERT examples

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

INSERT INTO cloudflare.zero_trust.profiles_predefined (
ai_context_enabled,
allowed_match_count,
confidence_threshold,
context_awareness,
entries,
ocr_enabled,
profile_id,
account_id
)
SELECT
{{ ai_context_enabled }},
{{ allowed_match_count }},
'{{ confidence_threshold }}',
'{{ context_awareness }}',
'{{ entries }}',
{{ ocr_enabled }},
'{{ profile_id }}' /* required */,
'{{ account_id }}'
RETURNING
errors,
messages,
result,
success
;

DELETE examples

This is a no-op as predefined profiles can't be deleted but is needed for our generated terraform API.

DELETE FROM cloudflare.zero_trust.profiles_predefined
WHERE account_id = '{{ account_id }}' --required
AND profile_id = '{{ profile_id }}' --required
;