Could I create a topic in Kafka via API?

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 
Add Comment
1 Answer(s)

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."

Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.