This article shows how to read the cursor size of an ActiveMQ queue using the REST API.
Read Queue Cursor Size
GET /activemq/queues/{nodeName}/{managerName}/{brokerName}/{queueName}/cursor-size
Read queue cursor size.
Example Request
curl -X 'GET' \ 'http://<hostname>:8019/rest/v1/activemq/queues/CMACTIVEMQ/Activemq-server/DemoBroker/AABBCC/cursor-size' \ -H 'accept: application/json' \ -H 'Authorization: Basic QWRtaW46YWRtaW4='
Query Parameters
| Parameter | Type | Description |
validateAccessForUser |
string | Validate access for user. |
Response Codes
200– Returns matching object.*– Error response.
Example Response
200 – Returns matching object.
{
"count": 1
}