Skip to main content

profiles_custom

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

Overview

Nameprofiles_custom
TypeResource
Idcloudflare.zero_trust.profiles_custom

Fields

The following fields are returned by SELECT queries:

Custom 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
get_by_accountselectaccount_id, profile_idFetches a custom DLP profile by id.
listselectaccount_idLists all DLP custom profiles in an account.
createinsertaccount_id, nameCreates a DLP custom profile.
update_by_accountreplaceaccount_id, profile_id, nameUpdates a DLP custom profile.
delete_by_accountdeleteaccount_id, profile_idDeletes a DLP custom profile.

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 custom 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_custom
WHERE account_id = '{{ account_id }}' -- required
AND profile_id = '{{ profile_id }}' -- required
;

INSERT examples

Creates a DLP custom profile.

INSERT INTO cloudflare.zero_trust.profiles_custom (
ai_context_enabled,
allowed_match_count,
confidence_threshold,
context_awareness,
data_classes,
data_tags,
description,
entries,
name,
ocr_enabled,
sensitivity_levels,
shared_entries,
account_id
)
SELECT
{{ ai_context_enabled }},
{{ allowed_match_count }},
'{{ confidence_threshold }}',
'{{ context_awareness }}',
'{{ data_classes }}',
'{{ data_tags }}',
'{{ description }}',
'{{ entries }}',
'{{ name }}' /* required */,
{{ ocr_enabled }},
'{{ sensitivity_levels }}',
'{{ shared_entries }}',
'{{ account_id }}'
RETURNING
errors,
messages,
result,
success
;

REPLACE examples

Updates a DLP custom profile.

REPLACE cloudflare.zero_trust.profiles_custom
SET
ai_context_enabled = {{ ai_context_enabled }},
allowed_match_count = {{ allowed_match_count }},
confidence_threshold = '{{ confidence_threshold }}',
context_awareness = '{{ context_awareness }}',
data_classes = '{{ data_classes }}',
data_tags = '{{ data_tags }}',
description = '{{ description }}',
entries = '{{ entries }}',
name = '{{ name }}',
ocr_enabled = {{ ocr_enabled }},
sensitivity_levels = '{{ sensitivity_levels }}',
shared_entries = '{{ shared_entries }}'
WHERE
account_id = '{{ account_id }}' --required
AND profile_id = '{{ profile_id }}' --required
AND name = '{{ name }}' --required
RETURNING
errors,
messages,
result,
success;

DELETE examples

Deletes a DLP custom profile.

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