Topics

GET /topics/{topicname}/partitions

Changed on

Retrieves a list of partitions for the topic.

Request

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

Response

List of partitions.

partitioninteger

Partition number

leaderinteger

Broker ID of the partition leader.

Example response

[
  {
    "partition": 1,
    "leader": 1,
    "replicas": [
      {
        "broker": 1,
        "leader": true,
        "in_sync": true
      },
      {
        "broker": 2,
        "leader": false,
        "in_sync": true
      }
    ]
  }
]

Changes