icychocolate98
icychocolate98

Reputation: 318

Could I create a topic in Kafka via API? Using any python library

I'm trying to find information about the topic creation in Kafka via API, because I need to automate some tasks, It would be great if someone knows if it's possible, I was reading here:

https://docs.confluent.io/current/kafka-rest/api.html#crest-api-v3

But it didn't work for me. If I try to do

GET in /v3/clusters/ --> returns code 404

Upvotes: 0

Views: 709

Answers (1)

icychocolate98
icychocolate98

Reputation: 318

I'm answering my own question.

I post here what I found, that rest endpoint is useful only in case you have configured kafka rest proxy, if not, try to use any external library.

If found this one:

https://docs.confluent.io/current/clients/confluent-kafka-python/index.html

"Kafka Admin client: create, view, alter, delete topics and resources."

Upvotes: 2

Related Questions