Skip to content

kafka get-topic-config

Get Config for kafka Topic Resource

Description

Get one or more config for a given kafka topic resource

Synopsis

kafka get-topic-config
    [--site <site>]
    [--cluster <cluster>]
    --topic <topic>
    [<config_names>]

Arguments

site - (string)

     Site where this command will be executed
     Example: --site "site-1"
     Default: input.site      Attributes: optional

cluster - (string)

     Name of kafka cluster
     Example: --cluster "cluster-1"
     Default: default      Attributes: optional

topic - (string)

     Name of kafka topic
     Example: --topic "topic-1"
     Default: _None_      Attributes: required

config_names - (string)

     Name of config. If not provided, returns all the config of the resource
     Example: "config_names-1"
     Default: _None_      Attributes: optional, multiple allowed

Examples

kafka get-topic-config --topic "topic-1" "config_names-1"

Access Control

To use this command, you need access to the following:

Field Value
Action "read"
Service Type "kafka"
Service Instance cluster
Namespace
Object Type "topic"
Object ID topic

Please see Access Control for details.