upload
Creates, updates, deletes, gets or lists a upload resource.
Overview
| Name | upload |
| Type | Resource |
| Id | cloudflare.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
edit | insert | account_id, dataset_id, version | 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. | |
create | insert | account_id, dataset_id | Creates 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.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
dataset_id | string | The dataset ID. |
version | integer (int64) |
INSERT examples
- edit
- create
- Manifest
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
;
Creates a new version of a DLP dataset, allowing you to stage changes before activation. Used for single-column EDM and custom word lists.
INSERT INTO cloudflare.zero_trust.upload (
account_id,
dataset_id
)
SELECT
'{{ account_id }}',
'{{ dataset_id }}'
RETURNING
errors,
messages,
result,
success
;
# Description fields are for documentation purposes
- name: upload
props:
- name: account_id
value: "{{ account_id }}"
description: Required parameter for the upload resource.
- name: dataset_id
value: "{{ dataset_id }}"
description: Required parameter for the upload resource.
- name: version
value: "{{ version }}"
description: Required parameter for the upload resource.