Skip to main content

upload

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

Overview

Nameupload
TypeResource
Idcloudflare.zero_trust.upload

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
editinsertaccount_id, dataset_id, versionThis is used for single-column EDMv1 and Custom Word Lists. The EDM format can only be created in the Cloudflare dashboard. For other clients, this operation can only be used for non-secret Custom Word Lists. The body must be a UTF-8 encoded, newline (NL or CRNL) separated list of words to be matched.
createinsertaccount_id, dataset_idCreates a new version of a DLP dataset, allowing you to stage changes before activation. Used for single-column EDM and custom word lists.

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.
versioninteger (int64)

INSERT examples

This is used for single-column EDMv1 and Custom Word Lists. The EDM format can only be created in the Cloudflare dashboard. For other clients, this operation can only be used for non-secret Custom Word Lists. The body must be a UTF-8 encoded, newline (NL or CRNL) separated list of words to be matched.

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