Skip to main content

Get topic info

Read a topic's partition count, replication and settings.

Command in the Kafka toolkit · id ooa.kafka/get_topic · 6 inputs (1 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Endpoint addressStringNoKafka REST Proxy address, e.g. https://pkc-12345.us-east-1.aws.confluent.cloud:443 or http://kafka-rest.internal:8082.
TopicStringYesTopic to look up.
Cluster IDStringNoKafka cluster id. Leave empty to use the only (first) cluster the proxy serves.
API keyStringNoAPI key or user name, used with api_secret.
API secretCredentialNoAPI secret or password from the vault.
Access tokenCredentialNoBearer token from the vault, used instead of an API key and secret.

Outputs​

OutputTypeWhat it is
infoDictionarytopic, partitions, replication_factor, internal.
settingsDictionaryTopic settings, e.g. retention.ms and cleanup.policy.