default_topic_configs
Creates, updates, deletes, gets or lists a default_topic_configs resource.
Overview
| Name | default_topic_configs |
| Type | Resource |
| Id | confluent.kafka.default_topic_configs |
Fields
The following fields are returned by SELECT queries:
- list_kafka_default_topic_configs
The list of cluster configs.
| Name | Datatype | Description |
|---|---|---|
name | string | |
cluster_id | string | |
topic_name | string | |
is_default | boolean | |
is_read_only | boolean | |
is_sensitive | boolean | |
kind | string | |
metadata | object | |
source | string | |
synonyms | array | |
value | string |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_kafka_default_topic_configs | select | cluster_id, topic_name, kafka_endpoint_id, region, cloud_provider | List 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.
| Name | Datatype | Description |
|---|---|---|
cloud_provider | string | Cloud provider, lowercase: aws, gcp, or azure (from the cluster spec.cloud). (default: cloud) |
cluster_id | string | The Kafka cluster ID. (example: cluster-1) |
kafka_endpoint_id | string | Per-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) |
region | string | Cloud region the cluster runs in, e.g. ap-southeast-2 (from the cluster spec.region). (default: region) |
topic_name | string | The topic name. (example: topic-1) |
SELECT examples
- list_kafka_default_topic_configs
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
;