Skip to main content

topic_configs

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

Overview

Nametopic_configs
TypeResource
Idconfluent.kafka.topic_configs

Fields

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

Methods

NameAccessible byRequired ParamsDescription
get_kafka_topic_configSELECTcluster_id, name, topic_nameGenerally Available Return the configuration parameter with the given name.
list_kafka_all_topic_configsSELECTcluster_idGenerally Available Return the list of configuration parameters for all topics hosted by the specified cluster.
list_kafka_topic_configsSELECTcluster_id, topic_nameGenerally Available Return the list of configuration parameters that belong to the specified topic.
delete_kafka_topic_configDELETEcluster_id, name, topic_nameGenerally Available Reset the configuration parameter with given name to its default value.
update_kafka_topic_config_batchUPDATEcluster_id, topic_name, data__dataGenerally Available Update or delete a set of topic configuration parameters. Also supports a dry-run mode that only validates whether the operation would succeed if the validate_only request property is explicitly specified and set to true.
update_kafka_topic_configEXECcluster_id, name, topic_nameGenerally Available Update the configuration parameter with given name.

SELECT examples

Generally Available Return the list of configuration parameters for all topics hosted by the specified cluster.

SELECT
name,
cluster_id,
is_default,
is_read_only,
is_sensitive,
kind,
metadata,
source,
synonyms,
topic_name,
value
FROM confluent.kafka.topic_configs
WHERE cluster_id = '{{ cluster_id }}';

UPDATE example

Updates a topic_configs resource.

/*+ update */
UPDATE confluent.kafka.topic_configs
SET
data = '{{ data }}',
validate_only = true|false
WHERE
cluster_id = '{{ cluster_id }}'
AND topic_name = '{{ topic_name }}'
AND data__data = '{{ data__data }}';

DELETE example

Deletes the specified topic_configs resource.

/*+ delete */
DELETE FROM confluent.kafka.topic_configs
WHERE cluster_id = '{{ cluster_id }}'
AND name = '{{ name }}'
AND topic_name = '{{ topic_name }}';