Topics

GET /topics/{topicname}/partitions/{partitionid}

Changed on

Retrieves partition metadata for the topic partition.

Request

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

Response

Partition metadata.

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