R2 Data Catalog
r2_data_catalog
Methods
Returns a list of R2 buckets that have been enabled as Apache Iceberg catalogs for the specified account. Each catalog represents an R2 bucket configured to store Iceberg metadata and data files.
Retrieve detailed information about a specific R2 catalog by bucket name. Returns catalog status, maintenance configuration, and credential status.
Enable an R2 bucket as an Apache Iceberg catalog. This operation creates the necessary catalog infrastructure and activates the bucket for storing Iceberg metadata and data files.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY
Workers R2 Data Catalog Write
Use this to identify the account.
Specifies the R2 bucket name.
Contains errors if the API call was unsuccessful.
Contains informational messages.
Indicates whether the API call was successful.
Contains response from activating an R2 bucket as a catalog.
Disable an R2 bucket as a catalog. This operation deactivates the catalog but preserves existing metadata and data files. The catalog can be re-enabled later.
Credentials
r2_data_catalog.credentials
Methods
Store authentication credentials for a catalog. These credentials are used to authenticate with R2 storage when performing catalog operations.
Maintenance Configs
r2_data_catalog.maintenance_configs
Methods
Retrieve the maintenance configuration for a specific catalog, including compaction settings and credential status.
Update the maintenance configuration for a catalog. This allows you to enable or disable compaction and adjust target file sizes for optimization.
Namespaces
r2_data_catalog.namespaces
Methods
Returns a list of namespaces in the specified R2 catalog. Supports hierarchical filtering and pagination for efficient traversal of large namespace hierarchies.
r2_data_catalog.namespaces.tables
Methods
Returns a list of tables in the specified namespace within an R2 catalog. Supports pagination for efficient traversal of large table collections.
r2_data_catalog.namespaces.tables.maintenance_configs
Methods
Retrieve the maintenance configuration for a specific table, including compaction settings.
Update the maintenance configuration for a specific table. This allows you to enable or disable compaction and adjust target file sizes for optimization.