This article shows how to verify if an ActiveMQ consumer is matching a specific topic using the REST API.
Read ActiveMQ Consumer Matching Topic
GET /activemq/consumers/{nodeName}/{managerName}/{brokerName}/{consumerName}/matching-topic/{topicName}
Retrieves whether a specified ActiveMQ consumer is matching the given topic.
Example Request
curl -X 'GET' \ 'http://<hostname>.68:8019/rest/v1/activemq/consumers/CMACTIVEMQ/Activemq-serve/DemoBroker/NOTSET%3A0%3A-1/matching-topic/TOPIC123' \ -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. |
topicName | string | The ActiveMQ topic 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 topic.
* – Error response, returns
ErrorPojo.
Example Response
200 OK: Consumer matches the topic
{
"status": true
}