GET /consumers/{string: group_name}/instances/{string: instance_id}/subscription

Gets the current subscribed list of topics.

Parameters

Table 1. Parameters
Parameter Description
group_name (string) Name of the consumer group.
instance (string) ID of the consumer instance.

Syntax

http://<host>:8082/consumers/<group_name>/instances/<consumer_name>/subscription

Request Example

curl -X GET -H "Content-Type: application/vnd.kafka.v2+json" 
https://localhost:8082/consumers/grouptest/instances/user/subscription

Response Example

The response JSON object is in the following form:
  • topics – A list of subscribed topics
  • topics[i] (string) – Name of the topic
{
  "topics":[
            "/stream:first",
            "/stream:second"
           ]
}