GET /topics/{string: topic_name}/partitions/{string: partition_id}/offsets

Returns a summary with beginning and end offsets for the given topic and specific partition.

Description

Information retrieved varies depending on the configuration. See the streams.default.stream in Configuration Parameters.

Table 1. Response Behavior
Parameters Defined Response
streams.default.stream is defined Gets summary with beginning and end offsets for the specific partition of the HPE Ezmeral Data Fabric Streams topic. You can pass a fully qualified topic name or not. If a fully qualified topic name is not used, metadata is retrieved and appended to the default stream path.
streams.default.stream is not defined Gets summary with beginning and end offsets for the specific HPE Ezmeral Data Fabric Streams partition within a topic. You can only pass the fully qualified topic names that contain the stream path.
Table 2. Parameters
Parameter Description
topic_name (string) Name of the topic.
partition_id (int) ID of the partition to inspect.

Syntax

http://<host>:8082/topics/<topic_name>/partitions/<partition_id>/offsets

Request Example

curl -X GET -H "Content-Type: application/vnd.kafka.v2" http://localhost:8082/topics/%2Fstreaming_data%2Fstream%3Atesttopic1/partitions/0/offsets

Response Example

{
  "beginning_offset":0,
  "end_offset":0
}