This article shows how to check if a specific ActiveMQ consumer is subscribed to a matching queue using the REST API.
Read ActiveMQ Consumer Matching Queue
GET /activemq/consumers/{nodeName}/{managerName}/{brokerName}/{consumerName}/matching-queue/{queueName}
Retrieves details to verify whether a specific ActiveMQ consumer is associated with a given queue.
Example Request
curl -X 'GET' \ 'http://<hostname>:8019/rest/v1/activemq/consumers/CMACTIVEMQ/Activemq-serve/DemoBroker/NOTSET%3A0%3A-1/matching-queue/AABBCC' \ -H 'accept: application/json' \ -H 'Authorization: Basic QWRtaW46YWRtaW4='
Path Parameters
| Parameter | Type | Description |
|---|---|---|
nodeName |
string | The ActiveMQ node name. |
managerName |
string | The manager name. |
brokerName |
string | The ActiveMQ broker name. |
consumerName |
string | The ActiveMQ consumer name. |
queueName |
string | The ActiveMQ queue name. |
Query Parameters
| Parameter | Type | Description |
|---|---|---|
validateAccessForUser |
string | Validate endpoint access for user. |
Response Codes
200 OK – Returns details if the consumer matches the specified queue.
* – Error response, returns
ErrorPojo.
Example Response
200 OK: Consumer matches the topic
{
"status": true
}