This article explains how to retrieve the details of an ActiveMQ network bridge using the REST API.
Endpoint
GET /activemq/network-bridges/{nodeName}/{managerName}/{brokerName}/{connectorType}/{networkConnectorName}/{networkBridgeName}
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. |
connectorType |
string | Yes |
The ActiveMQ Connector type. Available values: one-way, duplex |
networkConnectorName |
string | Yes | Name of the ActiveMQ network connector to retrieve. |
networkBridgeName |
string | Yes | The ActiveMQ Network Bridge name. |
Query Parameters
| Parameter | Type | Required | Description |
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-bridges/REMOTE_ACTIVEMQ/Activemq-16/DemoBroker/one-way/local-network/tcp_%2F%2F172.16.31.36_61617' \ -H 'accept: application/json' \ -H 'Authorization: Basic <base64-encoded-credentials>
Request URL
http://localhost:8019/rest/v1/activemq/network-bridges/REMOTE_ACTIVEMQ/Activemq-16/DemoBroker/one-way/local-network/tcp_%2F%2F172.16.31.36_61617
Response Codes
| Status Code | Description |
| 200 | Returns matching object |
Example Response
-
Success Response (204-Object changed):
{ "wgsName": "MQM", "nodeName": "REMOTE_ACTIVEMQ", "managerName": "Activemq-16", "brokerName": "DemoBroker", "networkConnectorName": "local-network", "connectorType": "one-way", "networkBridgeName": "tcp_//172.16.31.36_61617" }Response headers:
content-type: application/json date: server: transfer-encoding: vary:
-
Example Error Response (404 - Error: Not Found):
{ "type": "java", "messageId": "WGS0004", "message": "Not found", "explanation": "Not found record.", "action": "Requested object not exists.", "code": "2085", "codeStr": "MQRC_UNKNOWN_OBJECT_NAME" }