Skip to main content

objects

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

Overview

Nameobjects
TypeResource
Idcloudflare.durable_objects.objects

Fields

The following fields are returned by SELECT queries:

List Objects response.

NameDatatypeDescription
idstringID of the Durable Object. (example: fe7803fc55b964e09d94666545aab688d360c6bda69ba349ced1e5f28d2fc2c8)
hasStoredDatabooleanWhether the Durable Object has stored data.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_id, idlimit, cursorReturns the Durable Objects in a given namespace.

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.
idstringResource ID.
cursorstring
limitnumber

SELECT examples

Returns the Durable Objects in a given namespace.

SELECT
id,
hasStoredData
FROM cloudflare.durable_objects.objects
WHERE account_id = '{{ account_id }}' -- required
AND id = '{{ id }}' -- required
AND limit = '{{ limit }}'
AND cursor = '{{ cursor }}'
;