Skip to main content

account_settings

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

Overview

Nameaccount_settings
TypeResource
Idcloudflare.workers.account_settings

Fields

The following fields are returned by SELECT queries:

Fetch Worker Account Settings response.

NameDatatypeDescription
default_usage_modelstring
green_computeboolean

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idFetches Worker account settings for an account.
updatereplaceaccount_idCreates Worker account settings for an account.

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.

SELECT examples

Fetches Worker account settings for an account.

SELECT
default_usage_model,
green_compute
FROM cloudflare.workers.account_settings
WHERE account_id = '{{ account_id }}' -- required
;

REPLACE examples

Creates Worker account settings for an account.

REPLACE cloudflare.workers.account_settings
SET
default_usage_model = '{{ default_usage_model }}',
green_compute = {{ green_compute }}
WHERE
account_id = '{{ account_id }}' --required
RETURNING
errors,
messages,
result,
success;