Skip to main content

topic_partitions

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

Overview

Nametopic_partitions
TypeResource
Idconfluent.kafka.topic_partitions

Fields

NameDatatypeDescription
cluster_idstring
kindstring
leaderobject
metadataobject
partition_idinteger
reassignmentobject
replicasobject
topic_namestring

Methods

NameAccessible byRequired ParamsDescription
get_kafka_partitionSELECTcluster_id, partition_id, topic_nameGenerally Available Return the partition with the given partition_id.
list_kafka_partitionsSELECTcluster_id, topic_nameGenerally Available Return the list of partitions that belong to the specified topic.

SELECT examples

Generally Available Return the list of partitions that belong to the specified topic.

SELECT
cluster_id,
kind,
leader,
metadata,
partition_id,
reassignment,
replicas,
topic_name
FROM confluent.kafka.topic_partitions
WHERE cluster_id = '{{ cluster_id }}'
AND topic_name = '{{ topic_name }}';