Skip to main content

default_topic_configs

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

Overview

Namedefault_topic_configs
TypeResource
Idconfluent.kafka.default_topic_configs

Fields

The following fields are returned by SELECT queries:

The list of cluster configs.

NameDatatypeDescription
namestring
cluster_idstring
topic_namestring
is_defaultboolean
is_read_onlyboolean
is_sensitiveboolean
kindstring
metadataobject
sourcestring
synonymsarray
valuestring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_kafka_default_topic_configsselectcluster_id, topic_name, kafka_endpoint_id, region, cloud_providerList the default configuration parameters used if the topic were to be newly created.

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
cloud_providerstringCloud provider, lowercase: aws, gcp, or azure (from the cluster spec.cloud). (default: cloud)
cluster_idstringThe Kafka cluster ID. (example: cluster-1)
kafka_endpoint_idstringPer-cluster Kafka REST endpoint ID (the pkc-* host prefix from the Confluent UI Cluster -> Overview -> REST endpoint, or extract from confluent.managed_kafka_clusters.clusters spec.http_endpoint). (default: pkc-00000)
regionstringCloud region the cluster runs in, e.g. ap-southeast-2 (from the cluster spec.region). (default: region)
topic_namestringThe topic name. (example: topic-1)

SELECT examples

List the default configuration parameters used if the topic were to be newly created.

SELECT
name,
cluster_id,
topic_name,
is_default,
is_read_only,
is_sensitive,
kind,
metadata,
source,
synonyms,
value
FROM confluent.kafka.default_topic_configs
WHERE cluster_id = '{{ cluster_id }}' -- required
AND topic_name = '{{ topic_name }}' -- required
AND kafka_endpoint_id = '{{ kafka_endpoint_id }}' -- required
AND region = '{{ region }}' -- required
AND cloud_provider = '{{ cloud_provider }}' -- required
;