Skip to main content

scripts_script_settings

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

Overview

Namescripts_script_settings
TypeResource
Idcloudflare.workers.scripts_script_settings

Fields

The following fields are returned by SELECT queries:

Fetch script settings.

NameDatatypeDescription
logpushbooleanWhether Logpush is turned on for the Worker.
observabilityobjectObservability settings for the Worker.
tagsarrayTags associated with the Worker. (x-stainless-collection-type: set)
tail_consumersarrayList of Workers that will consume logs from the attached Worker. (x-stainless-collection-type: set)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_accountselectaccount_id, script_nameGet 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.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
script_namestringThe Worker script name.

SELECT examples

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
;