Skip to main content

topics

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

Overview

Nametopics
TypeResource
Idconfluent.tableflow.topics

Fields

The following fields are returned by SELECT queries:

Tableflow Topic.

NameDatatypeDescription
api_versionstringAPIVersion defines the schema version of this representation of a resource. (tableflow/v1)
kindstringKind defines the object this REST resource represents. (TableflowTopic)
metadataobjectObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.
specobjectThe desired state of the Tableflow Topic
statusobjectThe status of the Tableflow Topic

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_tableflow_v1_tableflow_topicselectenvironment, spec.kafka_cluster, display_nameMake a request to read a tableflow topic.
list_tableflow_v1_tableflow_topicsselectenvironment, spec.kafka_clusterspec.table_formats, page_size, page_tokenRetrieve a sorted, filtered, paginated list of all tableflow topics.
create_tableflow_v1_tableflow_topicinsertspecMake a request to create a tableflow topic.
update_tableflow_v1_tableflow_topicupdatedisplay_name, specMake a request to update a tableflow topic.

delete_tableflow_v1_tableflow_topicdeleteenvironment, spec.kafka_cluster, display_nameMake a request to delete a tableflow topic.

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
display_namestringThe name of the Kafka topic for which Tableflow is enabled.
environmentstringScope the operation to the given environment. (example: env-00000)
spec.kafka_clusterstringScope the operation to the given spec.kafka_cluster. (example: lkc-00000)
page_sizeintegerA pagination size for collection requests.
page_tokenstringAn opaque pagination token for collection requests.
spec.table_formatsarrayFilter the results by exact match for spec.table_formats. Pass multiple times to see results matching any of the values. (example: [DELTA, ICEBERG])

SELECT examples

Make a request to read a tableflow topic.

SELECT
api_version,
kind,
metadata,
spec,
status
FROM confluent.tableflow.topics
WHERE environment = '{{ environment }}' -- required
AND spec.kafka_cluster = '{{ spec.kafka_cluster }}' -- required
AND display_name = '{{ display_name }}' -- required
;

INSERT examples

Make a request to create a tableflow topic.

INSERT INTO confluent.tableflow.topics (
spec
)
SELECT
'{{ spec }}' /* required */
RETURNING
api_version,
kind,
metadata,
spec,
status
;

UPDATE examples

Make a request to update a tableflow topic.

UPDATE confluent.tableflow.topics
SET
spec = '{{ spec }}'
WHERE
display_name = '{{ display_name }}' --required
AND spec = '{{ spec }}' --required
RETURNING
api_version,
kind,
metadata,
spec,
status;

DELETE examples

Make a request to delete a tableflow topic.

DELETE FROM confluent.tableflow.topics
WHERE environment = '{{ environment }}' --required
AND spec.kafka_cluster = '{{ spec.kafka_cluster }}' --required
AND display_name = '{{ display_name }}' --required
;