<@U078Y59KC3B> how can I view the details of an ex...
# ask-ai
s
@RunLLM how can I view the details of an existing subscription in Apache Pulsar?
r
To view the details of an existing subscription in Apache Pulsar, you can use the Pulsar Admin API. Specifically, you can retrieve subscription properties using the
get-subscription-properties
command. This command is part of the Pulsar Admin API and allows you to access various properties associated with a subscription. For example, you can use the following command with the Pulsar Admin CLI:
Copy code
pulsar-admin topics get-subscription-properties persistent://tenant/namespace/topic --subscription subscription-name
This command will return the properties of the specified subscription for the given topic. If you need more detailed statistics about the subscription, you can use the
stats
command to get comprehensive statistics about the topic, including subscription details. Would you like more detailed information on how to use these commands or any specific properties you are interested in? Sources: - https://pulsar.apache.org/docs/3.2.x/admin-api-topics#get-bundle - https://github.com/apache/pulsar/pull/16095 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
s
@RunLLM how can I view the settings of an existing subscription in Apache Pulsar?
r
To view the settings of an existing subscription in Apache Pulsar, you can use the
get-subscription-properties
command available in the Pulsar Admin CLI. This command retrieves the properties associated with a subscription, providing insight into its configuration. Here's how you can use the command:
Copy code
pulsar-admin topics get-subscription-properties persistent://tenant/namespace/topic --subscription subscription-name
This command will display the properties of the specified subscription for the given topic, allowing you to view its settings. If you need more detailed information, such as statistics or other subscription-related data, you might consider using the
stats
command to get a broader view of the topic and its subscriptions. Would you like more detailed instructions or information on specific settings? Sources: - https://github.com/apache/pulsar/pull/16095 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.