Consumers

GET /consumers/{groupid}/instances/{name}/subscription

Changed on

Retrieves a list of the topics to which the consumer is subscribed.

Request

  • The document declares no server URL.
  • Auth
    none declared

Path parameters

groupidstring required

ID of the consumer group to which the subscribed consumer belongs.

namestring required

Name of the subscribed consumer.

Response

List of subscribed topics and partitions.

partitionsAssignedTopicPartitions[]

List of assigned topic partitions.

Example response

{
  "topics": [
    "my-topic1",
    "my-topic2"
  ],
  "partitions": [
    {
      "my-topic1": [
        1,
        2,
        3
      ]
    },
    {
      "my-topic2": [
        1
      ]
    }
  ]
}

Changes