Skip to main content

predefined_config

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

Overview

Namepredefined_config
TypeResource
Idcloudflare.zero_trust.predefined_config

Fields

The following fields are returned by SELECT queries:

Predefined profile response.

NameDatatypeDescription
idstring (uuid)The id of the predefined profile (uuid).
namestringThe name of the predefined profile.
ai_context_enabledboolean
allowed_match_countinteger (int32)
confidence_thresholdstring (default: low)
enabled_entriesarrayEntries to enable for this predefined profile. Any entries not provided will be disabled.
entriesarrayThis field has been deprecated for enabled_entries.
ocr_enabledboolean
open_accessbooleanWhether this profile can be accessed by anyone.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_id, profile_idThis is similar to get_predefined but only returns entries that are enabled. This is needed for our terraform API Fetches a predefined DLP profile by id.
update_by_accountreplaceaccount_id, profile_idThis is similar to update_predefined but only returns entries that are enabled. This is needed for our terraform API Updates 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)

SELECT examples

This is similar to get_predefined but only returns entries that are enabled. This is needed for our terraform API Fetches a predefined DLP profile by id.

SELECT
id,
name,
ai_context_enabled,
allowed_match_count,
confidence_threshold,
enabled_entries,
entries,
ocr_enabled,
open_access
FROM cloudflare.zero_trust.predefined_config
WHERE account_id = '{{ account_id }}' -- required
AND profile_id = '{{ profile_id }}' -- required
;

REPLACE examples

This is similar to update_predefined but only returns entries that are enabled. This is needed for our terraform API Updates a DLP predefined profile. Only supports enabling/disabling entries.

REPLACE cloudflare.zero_trust.predefined_config
SET
ai_context_enabled = {{ ai_context_enabled }},
allowed_match_count = {{ allowed_match_count }},
confidence_threshold = '{{ confidence_threshold }}',
enabled_entries = '{{ enabled_entries }}',
entries = '{{ entries }}',
ocr_enabled = {{ ocr_enabled }}
WHERE
account_id = '{{ account_id }}' --required
AND profile_id = '{{ profile_id }}' --required
RETURNING
errors,
messages,
result,
success;