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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Endpoint address | String | No | Kafka REST Proxy address, e.g. https://pkc-12345.us-east-1.aws.confluent.cloud:443 or http://kafka-rest.internal:8082. | |
| Topic | String | Yes | Topic to look up. | |
| Cluster ID | String | No | Kafka cluster id. Leave empty to use the only (first) cluster the proxy serves. | |
| API key | String | No | API key or user name, used with api_secret. | |
| API secret | Credential | No | API secret or password from the vault. | |
| Access token | Credential | No | Bearer token from the vault, used instead of an API key and secret. |
Outputs
| Output | Type | What it is |
|---|---|---|
| info | Dictionary | topic, partitions, replication_factor, internal. |
| settings | Dictionary | Topic settings, e.g. retention.ms and cleanup.policy. |