This article explains how to update the custom properties of an ActiveMQ network bridge using the REST API.
Endpoint
PATCH /activemq/network-bridges/{nodeName}/{managerName}/{brokerName}/{connectorType}/{networkConnectorName}/{networkBridgeName}/custom-properties
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. |
networkBridgeName |
string | Yes | The ActiveMQ network bridge name. |
Query Parameters
| Parameter | Type | Required | Description |
jobDate |
integer | No | Schedule job date (Unix Timestamp). |
jobTags |
string | No | A comma-separated list of schedule job tags (used only with jobDate). |
validateAccessForUser |
string | No | Validates endpoint access for the specified user. |
Request Body
{
"additionalProp1": "Done",
"additionalProp2": "success",
"additionalProp3": "Done"
}Example Request
curl -X 'PATCH' \
'http://localhost:8019/rest/v1/activemq/network-bridges/REMOTE_ACTIVEMQ/Activemq-16/DemoBroker/one-way/local-network/tcp_%2F%2F172.16.31.36_61617/custom-properties' \
-H 'accept: */*' \
-H 'Authorization: Basic <base64-encoded-credentials> \
-H 'Content-Type: application/json' \
-d '{
"additionalProp1": "Done",
"additionalProp2": "success",
"additionalProp3": "Done"
}'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/custom-properties
Response Codes
| Status Code | Description |
| 204 | Object changed |
| 304 | Object not changed |
Example Response
-
Success Response (204-Object changed): Indicates that the custom properties of the specified ActiveMQ network bridge were successfully updated. No response body is returned.
Response headers:
access-control-allow-credentials: true access-control-allow-origin: http://localhost:8019 date: server: vary: