This article describes how to search for events associated with an ActiveMQ network connector using the REST API.
Endpoint
GET /activemq/network-connectors/{nodeName}/{managerName}/{brokerName}/{networkConnectorName}/events
Path Parameters
| Parameter | Type | Required | Description |
nodeName |
string | Yes | Name of the ActiveMQ node. |
managerName |
string | Yes | Name of the ActiveMQ manager that contains the specified broker. |
brokerName |
string | Yes | Name of the ActiveMQ broker that contains the specified network connector. |
networkConnectorName |
string | Yes | Name of the ActiveMQ network connector to retrieve. |
Query Parameters
| Parameter | Type | Required | Description |
eventType |
string | No | Available values: None, All, Manager, Alter, QMgr, Channel, Performance, Config, Command, Schedule, Bridge, Logger. |
timestamp |
integer | No | Event timestamp used to determine whether the event has expired. |
limit |
integer | No | Maximum number of events to return. |
attributes |
string | No | A comma-separated list of attributes or attribute sections to retrieve. |
validateAccessForUser |
string | No | Validates endpoint access for the specified user. |
Example Request
curl -X 'GET' \ 'http://localhost:8019/rest/v1/activemq/network-connectors/REMOTE_ACTIVEMQ/Activemq-16/DemoBroker/local-network/events?eventType=All' \ -H 'accept: application/json' \ -H 'Authorization: Basic <base64-encoded-credentials>'
Request URL
http://localhost:8019/rest/v1/activemq/network-connectors/REMOTE_ACTIVEMQ/Activemq-16/DemoBroker/local-network/events?eventType=All
Response Codes
| Status Code | Description |
| 200 | Returns matching object. |
| 404 | Error: Not Found |
Example Response
-
Success Response (200 OK): Returns an array of events associated with the specified network connector.
[
{
"wgsName": "MQM",
"type": "Alter",
"eventNo": 853
},
{
"wgsName": "MQM",
"type": "Alter",
"eventNo": 852
},
{
"wgsName": "MQM",
"type": "Alter",
"eventNo": 851
},
{
"wgsName": "MQM",
"type": "Alter",
"eventNo": 849
}
]Response headers
content-type: application/json date: server: transfer-encoding: chunked vary: