objects
Creates, updates, deletes, gets or lists an objects resource.
Overview
| Name | objects |
| Type | Resource |
| Id | cloudflare.durable_objects.objects |
Fields
The following fields are returned by SELECT queries:
- list
List Objects response.
| Name | Datatype | Description |
|---|---|---|
id | string | ID of the Durable Object. (example: fe7803fc55b964e09d94666545aab688d360c6bda69ba349ced1e5f28d2fc2c8) |
hasStoredData | boolean | Whether the Durable Object has stored data. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id, id | limit, cursor | Returns 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.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
id | string | Resource ID. |
cursor | string | |
limit | number |
SELECT examples
- list
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 }}'
;