I am attempting to pull a list of all clusters on our cloud Confluent hosted Kafka servers. I am calling the following urls:
https://{bootstrap-server}/v3/clusters
and
https://{bootstrap-server}/kafka/v3/clusters
I have added the following headers:
Content-Type: application/json
Authorization: Basic base64(key:secret)
I receive the following Error on both urls:
Connection was forcibly closed by a peer.
I have many clusters that each have many topics that, in turn, have many partitions. Is there something else I need to set up? Any help would be appreciated.
Disclaimer: I am new to Confluent and Kafka APIs. Some of what I am doing or saying may not make sense as I do not fully understand the API.
Documentation:
Retrieving clusters:
Confluent REST Proxy API Reference | Confluent Documentation