scripts_script_settings
Creates, updates, deletes, gets or lists a scripts_script_settings resource.
Overview
| Name | scripts_script_settings |
| Type | Resource |
| Id | cloudflare.workers.scripts_script_settings |
Fields
The following fields are returned by SELECT queries:
- list_by_account
Fetch script settings.
| Name | Datatype | Description |
|---|---|---|
logpush | boolean | Whether Logpush is turned on for the Worker. |
observability | object | Observability settings for the Worker. |
tags | array | Tags associated with the Worker. (x-stainless-collection-type: set) |
tail_consumers | array | List of Workers that will consume logs from the attached Worker. (x-stainless-collection-type: set) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_by_account | select | account_id, script_name | Get script-level settings when using Worker Versions. Includes Logpush and Tail Consumers. |
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. |
script_name | string | The Worker script name. |
SELECT examples
- list_by_account
Get script-level settings when using Worker Versions. Includes Logpush and Tail Consumers.
SELECT
logpush,
observability,
tags,
tail_consumers
FROM cloudflare.workers.scripts_script_settings
WHERE account_id = '{{ account_id }}' -- required
AND script_name = '{{ script_name }}' -- required
;