Skip to main content

environments_settings

Creates, updates, deletes, gets or lists an environments_settings resource.

Overview

Nameenvironments_settings
TypeResource
Idcloudflare.workers.environments_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, service_name, environment_nameGet script settings from a worker with an environment.

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.
environment_namestringThe Worker service environment name.
service_namestringThe Worker service name.

SELECT examples

Get script settings from a worker with an environment.

SELECT
logpush,
observability,
tags,
tail_consumers
FROM cloudflare.workers.environments_settings
WHERE account_id = '{{ account_id }}' -- required
AND service_name = '{{ service_name }}' -- required
AND environment_name = '{{ environment_name }}' -- required
;