workers_scripts_search
Creates, updates, deletes, gets or lists a workers_scripts_search resource.
Overview
| Name | workers_scripts_search |
| Type | Resource |
| Id | cloudflare.workers.workers_scripts_search |
Fields
The following fields are returned by SELECT queries:
- list
Search Workers success.
| Name | Datatype | Description |
|---|---|---|
id | string | Identifier. (example: 023e105f4ecef8ad9ca31a8372d0c353) |
environment_name | string | Name of the environment. |
script_name | string | Name of the script, used in URLs and route configuration. (example: this-is_my_script-01) |
service_name | string | Name of the service. |
created_on | string (date-time) | When the script was created. (example: 2017-01-01T00:00:00Z) |
environment_is_default | boolean | Whether the environment is the default environment. |
modified_on | string (date-time) | When the script was last modified. (example: 2017-01-01T00:00:00Z) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id | name, id, order_by, page, per_page | Search for Workers in 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. |
id | string | |
name | string | |
order_by | string | |
page | integer | Current page. |
per_page | integer | Items per page. |
SELECT examples
- list
Search for Workers in an account.
SELECT
id,
environment_name,
script_name,
service_name,
created_on,
environment_is_default,
modified_on
FROM cloudflare.workers.workers_scripts_search
WHERE account_id = '{{ account_id }}' -- required
AND name = '{{ name }}'
AND id = '{{ id }}'
AND order_by = '{{ order_by }}'
AND page = '{{ page }}'
AND per_page = '{{ per_page }}'
;