system.kafka.listTopics
This function is used in Python Scripting.
Descriptionβ
Returns a list of topics for the provided connector.
Client Permission Restrictionsβ
This scripting function has no Client Permission restrictions.
Syntaxβ
system.kafka.listTopics(connector)
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| String | connector | The name of the Kafka connector. |
Returnsβ
List - A list of topics for the provided connector.
Scopeβ
Gateway
Code Examplesβ
Example #1
# Returns a list of topics from the specified connector.
system.kafka.listTopics("MyKafkaConnector")