Skip to main content

tables

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

Overview

Nametables
TypeResource
Idcloudflare.r2_data_catalog.tables

Fields

The following fields are returned by SELECT queries:

List of tables retrieved successfully.

NameDatatypeDescription
detailsarrayContains detailed metadata for each table when return_details is true. Each object includes identifier, UUID, timestamps, and locations.
identifiersarrayLists tables in the namespace.
next_page_tokenstringUse this opaque token to fetch the next page of results. A null or absent value indicates the last page. (example: MSYxNzU5NzU2MTI4NTU2Njk2JjAxOTliOWEzLTkxMmUtN2ZhMS05YzllLTg5MTAxMGQzYTg0MQ)
table_uuidsarrayContains UUIDs for each table when return_uuids is true. The order corresponds to the identifiers array.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_id, bucket_name, namespacepage_token, page_size, return_uuids, return_detailsReturns a list of tables in the specified namespace within an R2 catalog. Supports pagination for efficient traversal of large table collections.

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.
bucket_namestringThe R2 bucket name.
namespacestringThe namespace identifier. For nested namespaces, use %1F as separator (e.g., "bronze%1Fanalytics").
page_sizeintegerMaximum number of tables to return per page. Defaults to 100, maximum 1000.
page_tokenstringOpaque pagination token from a previous response. Use this to fetch the next page of results.
return_detailsbooleanWhether to include additional metadata (timestamps, locations). When true, response includes created_at, updated_at, metadata_locations, and locations arrays.
return_uuidsbooleanWhether to include table UUIDs in the response. Set to true to receive the table_uuids array.

SELECT examples

Returns a list of tables in the specified namespace within an R2 catalog. Supports pagination for efficient traversal of large table collections.

SELECT
details,
identifiers,
next_page_token,
table_uuids
FROM cloudflare.r2_data_catalog.tables
WHERE account_id = '{{ account_id }}' -- required
AND bucket_name = '{{ bucket_name }}' -- required
AND namespace = '{{ namespace }}' -- required
AND page_token = '{{ page_token }}'
AND page_size = '{{ page_size }}'
AND return_uuids = '{{ return_uuids }}'
AND return_details = '{{ return_details }}'
;