Cdf Config
A Lakebase CDF configuration (CdfConfig): one per Postgres schema per database, replicating that schema's tables into a Unity Catalog schema. Immutable once created.
CdfConfig object
A Lakebase CDF configuration (CdfConfig): one per Postgres schema per database, replicating that schema's tables into a Unity Catalog schema. Immutable once created.
- namestringBeta
Output only. The full resource name of the CdfConfig. Format: projects/{project}/branches/{branch}/databases/{database}/cdf-configs/{cdf_config}
- catalogstringBeta
The Unity Catalog catalog that replicated tables are written into. Set at creation; the CdfConfig is immutable.
- schemastringBeta
The Unity Catalog schema that replicated tables are written into. Set at creation; the CdfConfig is immutable.
- create_timestringBeta
When the CdfConfig was created.
- cdf_config_idstringBeta
The user-specified id; equals the final segment of
name. Defaults to the Postgres schema name for configs without an explicit id.
- postgres_schemastringBeta
The Postgres schema this CdfConfig replicates from. Unique within the parent database. Set at creation; the CdfConfig is immutable.
Get Beta
GET
Get a single Lakebase CDF configuration, including the source Postgres schema, target Unity Catalog schema, and the identity under which writes are authorized.
API scopes: postgres
Parameters
- namestringpath
The resource name of the CdfConfig to retrieve. Format: projects/{project}/branches/{branch}/databases/{database}/cdf-configs/{cdf_config}
Response
Returns the CdfConfig object.
List Beta
GET
List all CDF configurations for a Lakebase database. Each configuration maps a Postgres schema to a Unity Catalog schema where the change data feed is materialized.
API scopes: postgres
Parameters
- parentstringpath
The parent database to list CdfConfigs for. Format: projects/{project}/branches/{branch}/databases/{database}
- page_sizeint32query
Maximum number of CdfConfigs to return.
- page_tokenstringquery
Pagination token returned by a previous ListCdfConfigs call. Empty on the first page.
Response
Returns a list of CdfConfig objects.
Create Beta
POST
Create a CDF configuration that materializes the change data feed for all tables in a Postgres schema as open-format Delta tables in Unity Catalog. Once created, each table's change history is continuously written to its corresponding Lakehouse table.
API scopes: postgres
Parameters
- parentstringpath
The parent database under which to create the CdfConfig. Format: projects/{project}/branches/{branch}/databases/{database}
- cdf_config_idstringquery
The user-specified id for the CdfConfig, forming the final segment of its resource name. Must match the pattern
[a-z][a-z0-9_]{0,62}. Defaults to the Postgres schema name when omitted.
Request body
- cdf_configobject
The CdfConfig to create. The catalog, schema, and postgres_schema fields are required; all other fields are output only and ignored on input.
Show child attributesHide child attributes
- namestring
Output only. The full resource name of the CdfConfig. Format: projects/{project}/branches/{branch}/databases/{database}/cdf-configs/{cdf_config}
- catalogstring
The Unity Catalog catalog that replicated tables are written into. Set at creation; the CdfConfig is immutable.
- schemastring
The Unity Catalog schema that replicated tables are written into. Set at creation; the CdfConfig is immutable.
- create_timestring
When the CdfConfig was created.
- cdf_config_idstring
The user-specified id; equals the final segment of
name. Defaults to the Postgres schema name for configs without an explicit id.
- postgres_schemastring
The Postgres schema this CdfConfig replicates from. Unique within the parent database. Set at creation; the CdfConfig is immutable.
Response
- namestring
The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the
nameshould be a resource name ending withoperations/{unique_id}.
- metadataobject
Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata.
- doneboolean
If the value is
false, it means the operation is still in progress. Iftrue, the operation is completed, and eithererrororresponseis available.
- errorobjectRequired
The error result of the operation in case of failure or cancellation.
Show child attributesHide child attributes
- error_codestring
- messagestring
- stack_tracestring
- detailsarray of object
- responseobjectRequired
The normal, successful response of the operation.
Delete Beta
DELETE
Delete a CDF configuration and stop materializing the change data feed. When force=true, also drops the Delta tables in Unity Catalog. When force=false (default), the existing tables are preserved at their last state.
API scopes: postgres
Parameters
- namestringpath
The resource name of the CdfConfig to delete. Format: projects/{project}/branches/{branch}/databases/{database}/cdf-configs/{cdf_config}
- forcebooleanquery
When true, also drops the replicated Delta tables in Unity Catalog. When false (the default), the replicated tables are preserved at their last synced state.
Response
- namestring
The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the
nameshould be a resource name ending withoperations/{unique_id}.
- metadataobject
Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata.
- doneboolean
If the value is
false, it means the operation is still in progress. Iftrue, the operation is completed, and eithererrororresponseis available.
- errorobjectRequired
The error result of the operation in case of failure or cancellation.
Show child attributesHide child attributes
- error_codestring
- messagestring
- stack_tracestring
- detailsarray of object
- responseobjectRequired
The normal, successful response of the operation.