Manage Pulsar topic subscriptions, which represent consumer groups reading from topics.
- list: List all subscriptions for a topic
topic(string, required): The fully qualified topic name
- create: Create a new subscription
topic(string, required): The fully qualified topic namesubscription(string, required): The subscription namemessageId(string, optional): Initial position, default is latest
- delete: Delete a subscription
topic(string, required): The fully qualified topic namesubscription(string, required): The subscription nameforce(boolean, optional): Force delete active consumers
- skip: Skip messages for a subscription
topic(string, required): The fully qualified topic namesubscription(string, required): The subscription namecount(number, required): Number of messages to skip
- expire: Expire messages for a subscription
topic(string, required): The fully qualified topic namesubscription(string, required): The subscription nameexpireTimeInSeconds(number, required): Expiry time in seconds
- reset-cursor: Reset subscription position
topic(string, required): The fully qualified topic namesubscription(string, required): The subscription namemessageId(string, required): Message ID to reset to
- peek: Peek messages for a subscription without advancing the cursor
topic(string, required): The fully qualified topic namesubscription(string, required): The subscription namecount(number, optional): Number of messages to return, default is 1, maximum is 100
- get-message-by-id: Read a message by ledger ID and entry ID
topic(string, required): The fully qualified topic nameledgerId(number, required): Non-negative ledger ID of the messageentryId(number, required): Non-negative entry ID of the message
Message payloads returned by peek and get-message-by-id include:
payload: text view of the payloadpayloadBase64: lossless base64 encoding of the raw bytespayloadHex: hexadecimal dump for debugging