Hanzo
OpenapiMq

Returns a stream's consumers, name-ordered, with delivery state.

Returns a stream's consumers, name-ordered, with delivery state.

GET /v1/mq/stream/{stream}/consumer

Addresshttps://api.hanzo.ai/v1/mq/stream/{stream}/consumer
MethodGET
Operationget_mq_stream_by_stream_consumer
AuthAuthorization: Bearer $HANZO_API_KEY

Returns a stream's consumers, name-ordered, with delivery state.

Request

3 fields.

FieldInTypeRequiredDescription
streampathstringyesStream is the stream name, from the path.
limitqueryintegerLimit caps the consumers returned (1–1000, default 100).
offsetqueryintegerOffset skips that many consumers, name-ordered.

Response

StatusBodyMeaning
200pickOutok

200 body — 27 fields.

FieldInTypeAlwaysDescription
consumersbodyConsumer[]Consumers is the page, ordered by name.
consumers[].ack_floorbodySequences
consumers[].ack_floor.consumer_seqbodyintegerConsumer is the consumer's own sequence.
consumers[].ack_floor.stream_seqbodyintegerStream is the corresponding stream sequence.
consumers[].configbodyDurable
consumers[].config.ack_policybodystringAck is the acknowledgment policy: explicit (default), all, or none.
consumers[].config.ack_waitbodystringAckWait is how long the broker waits for an ack before redelivering, e.g.
consumers[].config.deliver_policybodystringDeliver is where delivery starts: all (default), last, new, by_start_sequence, by_start_time, or last_per_subject.
consumers[].config.descriptionbodystringDescription says what this consumer is for.
consumers[].config.durable_namebodystringName is the durable consumer name (alphanumeric, hyphens, underscores).
consumers[].config.filter_subjectbodystringFilter delivers only messages on this org-relative subject (wildcards supported).
consumers[].config.max_ack_pendingbodyintegerMaxAckPending caps unacknowledged messages in flight (default 1000).
consumers[].config.max_deliverbodyintegerMaxDeliver caps delivery attempts per message; -1 (default) is unlimited.
consumers[].config.opt_start_seqbodyintegerStartSeq is the starting sequence for deliver_policy by_start_sequence.
consumers[].config.opt_start_timebodystring (date-time)StartTime is the starting instant for deliver_policy by_start_time.
consumers[].config.replay_policybodystringReplay is the replay pacing: instant (default) or original.
consumers[].createdbodystring (date-time)Created is when the consumer was created.
consumers[].deliveredbodySequences
consumers[].delivered.consumer_seqbodyintegerConsumer is the consumer's own sequence.
consumers[].delivered.stream_seqbodyintegerStream is the corresponding stream sequence.
consumers[].namebodystringName is the consumer name.
consumers[].num_ack_pendingbodyintegerAckPending is the number of delivered, not yet acknowledged messages.
consumers[].num_pendingbodyintegerPending is the number of messages yet to be delivered.
consumers[].num_redeliveredbodyintegerRedelivered is the number of messages currently being redelivered.
consumers[].num_waitingbodyintegerWaiting is the number of pull requests waiting for messages.
consumers[].stream_namebodystringStream is the stream this consumer reads.
totalbodyintegerTotal is the stream's consumer count before paging.

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


MQ API · All Hanzo APIs · Interactive reference

How is this guide?

On this page