GET /brokers

Retrieves a list of Apache Kafka brokers if hybrid mode is used.

Description

Depending on the configuration, the type of information retrieved has different behavior. See the rest.proxy.backend parameter in Configuration Parameters.

Table 1. Response Behavior
Parameters Defined Response
rest.proxy.backend=streams

Returns {"error_code":80001,"message":"MapR Streams does not currently support this API "}

rest.proxy.backend=hybrid Gets a list of Apache Kafka broker IDs.

Syntax

http://<host>:8082/brokers

Request Example

curl -X GET "http://localhost:8082/brokers"

Response Example

HTTP/1.1 200 OK Content-Type
{   "brokers": [1, 2, 3] }