dlp_entries
Creates, updates, deletes, gets or lists a dlp_entries resource.
Overview
| Name | dlp_entries |
| Type | Resource |
| Id | cloudflare.zero_trust.dlp_entries |
Fields
The following fields are returned by SELECT queries:
- get_by_account
- list
Get entry response.
| Name | Datatype | Description |
|---|---|---|
id | string (uuid) | |
name | string | |
profile_id | string (uuid) | |
case_sensitive | boolean | Only applies to custom word lists. Determines if the words should be matched in a case-sensitive manner Cannot be set to false if secret is true |
confidence | object | |
created_at | string (date-time) | |
description | string | |
enabled | boolean | |
pattern | object | |
profiles | array | (x-stainless-terraform-configurability: computed_optional) |
secret | boolean | |
type | string | (custom) |
updated_at | string (date-time) | |
upload_status | string | (empty, uploading, pending, processing, failed, complete) (x-stainless-terraform-configurability: computed_optional) |
variant | object | |
word_list | |
List all entries response.
| Name | Datatype | Description |
|---|---|---|
id | string (uuid) | |
name | string | |
profile_id | string (uuid) | |
case_sensitive | boolean | Only applies to custom word lists. Determines if the words should be matched in a case-sensitive manner Cannot be set to false if secret is true |
confidence | object | |
created_at | string (date-time) | |
description | string | |
enabled | boolean | |
pattern | object | |
secret | boolean | |
type | string | (custom) |
updated_at | string (date-time) | |
upload_status | string | (empty, uploading, pending, processing, failed, complete) (x-stainless-terraform-configurability: computed_optional) |
variant | object | |
word_list | |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_by_account | select | account_id, entry_id | Fetches a DLP entry by ID. | |
list | select | account_id | Lists all DLP entries in an account. | |
create | insert | account_id, name, pattern, enabled | Creates a DLP custom entry. | |
delete_by_account | delete | account_id, entry_id | Deletes a DLP custom entry. |
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.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
entry_id | string (uuid) |
SELECT examples
- get_by_account
- list
Fetches a DLP entry by ID.
SELECT
id,
name,
profile_id,
case_sensitive,
confidence,
created_at,
description,
enabled,
pattern,
profiles,
secret,
type,
updated_at,
upload_status,
variant,
word_list
FROM cloudflare.zero_trust.dlp_entries
WHERE account_id = '{{ account_id }}' -- required
AND entry_id = '{{ entry_id }}' -- required
;
Lists all DLP entries in an account.
SELECT
id,
name,
profile_id,
case_sensitive,
confidence,
created_at,
description,
enabled,
pattern,
secret,
type,
updated_at,
upload_status,
variant,
word_list
FROM cloudflare.zero_trust.dlp_entries
WHERE account_id = '{{ account_id }}' -- required
;
INSERT examples
- create
- Manifest
Creates a DLP custom entry.
INSERT INTO cloudflare.zero_trust.dlp_entries (
description,
enabled,
name,
pattern,
profile_id,
account_id
)
SELECT
'{{ description }}',
{{ enabled }} /* required */,
'{{ name }}' /* required */,
'{{ pattern }}' /* required */,
'{{ profile_id }}',
'{{ account_id }}'
RETURNING
errors,
messages,
result,
success
;
# Description fields are for documentation purposes
- name: dlp_entries
props:
- name: account_id
value: "{{ account_id }}"
description: Required parameter for the dlp_entries resource.
- name: description
value: "{{ description }}"
- name: enabled
value: {{ enabled }}
- name: name
value: "{{ name }}"
- name: pattern
value:
regex: "{{ regex }}"
validation: "{{ validation }}"
- name: profile_id
value: "{{ profile_id }}"
DELETE examples
- delete_by_account
Deletes a DLP custom entry.
DELETE FROM cloudflare.zero_trust.dlp_entries
WHERE account_id = '{{ account_id }}' --required
AND entry_id = '{{ entry_id }}' --required
;