Skip to main content

settings

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

Overview

Namesettings
TypeResource
Idcloudflare.fraud.settings

Fields

The following fields are returned by SELECT queries:

Fraud Detection settings response

NameDatatypeDescription
user_profilesstringWhether Fraud User Profiles is enabled for the zone. (enabled, disabled) (example: disabled)
username_expressionsarrayList of expressions to detect usernames in write HTTP requests. - Maximum of 10 expressions. - Omit or set to null to leave unchanged on update. - Provide an empty array [] to clear all expressions on update. - Invalid expressions will result in a 10400 Bad Request with details in the messages array.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectzone_idRetrieve Fraud Detection settings for a zone.
updatereplacezone_idUpdate Fraud Detection settings for a zone. Notes on username_expressions behavior: - If omitted or set to null, expressions are not modified. - If provided as an empty array [], all expressions will be cleared.

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
zone_idstringThe Cloudflare zone ID.

SELECT examples

Retrieve Fraud Detection settings for a zone.

SELECT
user_profiles,
username_expressions
FROM cloudflare.fraud.settings
WHERE zone_id = '{{ zone_id }}' -- required
;

REPLACE examples

Update Fraud Detection settings for a zone. Notes on username_expressions behavior: - If omitted or set to null, expressions are not modified. - If provided as an empty array [], all expressions will be cleared.

REPLACE cloudflare.fraud.settings
SET
user_profiles = '{{ user_profiles }}',
username_expressions = '{{ username_expressions }}'
WHERE
zone_id = '{{ zone_id }}' --required
RETURNING
errors,
messages,
result,
success;