account_settings
Creates, updates, deletes, gets or lists an account_settings resource.
Overview
| Name | account_settings |
| Type | Resource |
| Id | cloudflare.workers.account_settings |
Fields
The following fields are returned by SELECT queries:
- list
Fetch Worker Account Settings response.
| Name | Datatype | Description |
|---|---|---|
default_usage_model | string | |
green_compute | boolean |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id | Fetches Worker account settings for an account. | |
update | replace | account_id | Creates 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.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
SELECT examples
- list
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
- update
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;