behaviours
Creates, updates, deletes, gets or lists a behaviours resource.
Overview
| Name | behaviours |
| Type | Resource |
| Id | cloudflare.zero_trust.behaviours |
Fields
The following fields are returned by SELECT queries:
- list
Risk scoring behaviors.
| Name | Datatype | Description |
|---|---|---|
behaviors | object |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id | Retrieves configured risk score behaviors that define how user actions affect their overall risk score. | |
update | replace | account_id, behaviors | Updates risk score behavior configurations, defining weights and thresholds for risk calculation. |
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. |
SELECT examples
- list
Retrieves configured risk score behaviors that define how user actions affect their overall risk score.
SELECT
behaviors
FROM cloudflare.zero_trust.behaviours
WHERE account_id = '{{ account_id }}' -- required
;
REPLACE examples
- update
Updates risk score behavior configurations, defining weights and thresholds for risk calculation.
REPLACE cloudflare.zero_trust.behaviours
SET
behaviors = '{{ behaviors }}'
WHERE
account_id = '{{ account_id }}' --required
AND behaviors = '{{ behaviors }}' --required
RETURNING
errors,
messages,
result,
success;