Skip to main content

entries

Creates, updates, deletes, gets or lists an entries resource.

Overview

Nameentries
TypeResource
Idcloudflare.zero_trust.entries

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertaccount_id, dataset_id, version, entry_idThis is used for multi-column EDMv2 datasets. The EDMv2 format can only be created in the Cloudflare dashboard.
updatereplaceaccount_id, entry_id, typeUpdates a DLP entry.
update_customexecaccount_id, entry_id, name, pattern, enabledUpdates 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.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
dataset_idstringThe dataset ID.
entry_idstring (uuid)
versioninteger (int64)

INSERT examples

This is used for multi-column EDMv2 datasets. The EDMv2 format can only be created in the Cloudflare dashboard.

INSERT INTO cloudflare.zero_trust.entries (
account_id,
dataset_id,
version,
entry_id
)
SELECT
'{{ account_id }}',
'{{ dataset_id }}',
'{{ version }}',
'{{ entry_id }}'
RETURNING
errors,
messages,
result,
success
;

REPLACE examples

Updates a DLP entry.

REPLACE cloudflare.zero_trust.entries
SET
enabled = {{ enabled }},
description = '{{ description }}',
name = '{{ name }}',
pattern = '{{ pattern }}',
type = '{{ type }}'
WHERE
account_id = '{{ account_id }}' --required
AND entry_id = '{{ entry_id }}' --required
AND type = '{{ type }}' --required
RETURNING
errors,
messages,
result,
success;

Lifecycle Methods

Updates a DLP custom entry.

EXEC cloudflare.zero_trust.entries.update_custom
@account_id='{{ account_id }}' --required,
@entry_id='{{ entry_id }}' --required
@@json=
'{
"description": "{{ description }}",
"name": "{{ name }}",
"pattern": "{{ pattern }}",
"enabled": {{ enabled }}
}'
;