Skip to main content

latest

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

Overview

Namelatest
TypeResource
Idcloudflare.workers.latest

Fields

The following fields are returned by SELECT queries:

Latest builds retrieved successfully

NameDatatypeDescription
buildsobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idexternal_script_idsRetrieve the most recent builds for multiple worker scripts

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.
external_script_idsstring

SELECT examples

Retrieve the most recent builds for multiple worker scripts

SELECT
builds
FROM cloudflare.workers.latest
WHERE account_id = '{{ account_id }}' -- required
AND external_script_ids = '{{ external_script_ids }}'
;