Get topic partition information

View as Markdown
GET /v1/partitions/{namespace}/{topic}

Get topic partition information.

Path parameters

  • namespace string Required
  • topic string Required

Responses

  • 200 application/json

    Topic partitions information response

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

      Node ID of the leader broker

    • ns string

      namespace

    • partition_id integer(int64)

      partition

    • raft_group_id integer(int64)

      partition raft group id

    • replicas array[object]

      Replica assignments

      Replica assignment

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

        core

      • node_id integer(int64)

        node id

    • status string

      status

    • topic string

      topic

GET /v1/partitions/{namespace}/{topic}
curl \ --request GET 'http://localhost:9644/v1/partitions/{namespace}/{topic}'
Response examples (200)
[ { "leader_id": 42, "ns": "string", "partition_id": 42, "raft_group_id": 42, "replicas": [ { "core": 42, "node_id": 42 } ], "status": "string", "topic": "string" } ]