settings
Creates, updates, deletes, gets or lists a settings resource.
Overview
| Name | settings |
| Type | Resource |
| Id | cloudflare.content_scanning.settings |
Fields
The following fields are returned by SELECT queries:
- list
Get Content Scanning status response.
| Name | Datatype | Description |
|---|---|---|
modified | string | Defines the last modification date (ISO 8601) of the Content Scanning status. (example: 2024-12-02T09:57:23.150259Z) |
value | string | Defines the status of Content Scanning. (example: enabled) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | zone_id | Retrieve the current status of Content Scanning. | |
create | replace | zone_id, value | Update the Content Scanning status. |
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 |
|---|---|---|
zone_id | string | The Cloudflare zone ID. |
SELECT examples
- list
Retrieve the current status of Content Scanning.
SELECT
modified,
value
FROM cloudflare.content_scanning.settings
WHERE zone_id = '{{ zone_id }}' -- required
;
REPLACE examples
- create
Update the Content Scanning status.
REPLACE cloudflare.content_scanning.settings
SET
value = '{{ value }}'
WHERE
zone_id = '{{ zone_id }}' --required
AND value = '{{ value }}' --required
RETURNING
errors,
messages,
result,
success;