GET <chan_name>/v1/subscribe/<dur_name>
Gets zero or more messages from a specific durable subscription on a specific channel.
One common usage pattern would be to repeat this request until the response array is empty, indicating that no messages remain in the durable.
HTTP Parameters
Syntax | Description |
---|---|
timeout=wait_time | Optional.
When present, the request waits this interval (in seconds) for messages to become available. If the value is less than 1, the request waits the minimum time of 1 second. When absent, the request waits the default interval. |
matcher=json_content_matcher | Required for last-value durables.
Specify a content matcher that includes the key field of a last-value durable. |
type=durable_type | Required if the durable subscription was originally created using the durable type parameter (via POST REST request).
If required, specify a durable type of either shared or last-value. |
max=maximum_messages_to_return | Optional.
When present, the number of messages returned is limited by the value specified. When absent, the request returns all messages in the durable, up to a maximum of 100 messages. |