Skip to main content

payload_logs

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

Overview

Namepayload_logs
TypeResource
Idcloudflare.zero_trust.payload_logs

Fields

The following fields are returned by SELECT queries:

Payload log settings.

NameDatatypeDescription
masking_levelstringMasking level for payload logs. - full: The entire payload is masked. - partial: Only partial payload content is masked. - clear: No masking is applied to the payload content. - default: DLP uses its default masking behavior. (full, partial, clear, default)
public_keystringBase64-encoded public key for encrypting payload logs. Null when payload logging is disabled.
updated_atstring (date-time)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idGets the current payload logging configuration for DLP, showing whether matched content is being logged.
updatereplaceaccount_idEnables or disables payload logging for DLP matches. When enabled, matched content is stored for review.

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.

SELECT examples

Gets the current payload logging configuration for DLP, showing whether matched content is being logged.

SELECT
masking_level,
public_key,
updated_at
FROM cloudflare.zero_trust.payload_logs
WHERE account_id = '{{ account_id }}' -- required
;

REPLACE examples

Enables or disables payload logging for DLP matches. When enabled, matched content is stored for review.

REPLACE cloudflare.zero_trust.payload_logs
SET
masking_level = '{{ masking_level }}',
public_key = '{{ public_key }}'
WHERE
account_id = '{{ account_id }}' --required
RETURNING
errors,
messages,
result,
success;