List partitions

GET /v1/partitions

Get a list of partition replicas hosted by the current broker. Returns only those partitions whose replicas are present on the queried broker, not all partitions in the cluster.

Responses

  • 200 application/json

    List partitions response

    Hide response attributes Show response attributes object
    • core integer(int64)

      core

    • leader integer(int64)

      Latest known leader (or -1 if unknown)

    • materialized boolean

      materialized

    • ns string

      namespace

    • partition_id integer(int64)

      partition

    • topic string

      topic

GET /v1/partitions
curl \
 --request GET 'http://localhost:9644/v1/partitions'
Response examples (200)
[
  {
    "core": 42,
    "leader": 42,
    "materialized": true,
    "ns": "string",
    "partition_id": 42,
    "topic": "string"
  }
]