This article shows how to reset the statistics of a specific ActiveMQ broker using the REST API.
Reset Statistics on ActiveMQ Broker
POST /activemq/brokers/{nodeName}/{managerName}/{brokerName}/reset-statistics
Resets all statistical data on a specified ActiveMQ broker.
Example Request
curl -X 'POST' \ 'http://<hostname>:8019/rest/v1/activemq/brokers/CMACTIVEMQ/Activemq-server/DemoBroker/reset-statistics' \ -H 'accept: */*' \ -H 'Authorization: Basic QWRtaW46YWRtaW4=' \ -d ''
Query Parameters
| Parameter | Type | Description |
|---|---|---|
jobDate | integer | Schedule job date (Unix Timestamp). |
jobTags | string | Comma-separated list of job tags (used only with jobDate). |
validateAccessForUser | string | Validate endpoint access for user. |
Response Codes
201 Object created – Statistics reset successfully.
304 Action failed – Statistics reset did not complete.
* – Error response, returns
ErrorPojo.
Response Example
201 Object created – Statistics reset successfully.
access-control-allow-credentials: true access-control-allow-origin: http://<hostname>:8019 content-length: 0 date: Tue,30 Sep 2025 10:44:59 GMT server: Jetty(10.0.22) vary: Origin