Skip to main content

workers_scripts_search

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

Overview

Nameworkers_scripts_search
TypeResource
Idcloudflare.workers.workers_scripts_search

Fields

The following fields are returned by SELECT queries:

Search Workers success.

NameDatatypeDescription
idstringIdentifier. (example: 023e105f4ecef8ad9ca31a8372d0c353)
environment_namestringName of the environment.
script_namestringName of the script, used in URLs and route configuration. (example: this-is_my_script-01)
service_namestringName of the service.
created_onstring (date-time)When the script was created. (example: 2017-01-01T00:00:00Z)
environment_is_defaultbooleanWhether the environment is the default environment.
modified_onstring (date-time)When the script was last modified. (example: 2017-01-01T00:00:00Z)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idname, id, order_by, page, per_pageSearch 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.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
idstring
namestring
order_bystring
pageintegerCurrent page.
per_pageintegerItems per page.

SELECT examples

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 }}'
;