This article describes how to force an update of an existing ActiveMQ network connector using the REST API.
Endpoint
PATCH /activemq/network-connectors/{nodeName}/{managerName}/{brokerName}/{networkConnectorName}/force-update
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 update. |
Query Parameters
| Parameter | Type | Required | Description |
validateAccessForUser |
string | No | Validates endpoint access for the specified user. |
Example Request
curl -X 'PATCH' \ 'http://localhost:8019/rest/v1/activemq/network-connectors/REMOTE_ACTIVEMQ/Activemq-16/DemoBroker/local-network/force-update' \ -H 'accept: */*' \ -H 'Authorization: Basic QWRtaW46YWRtaW4='
Request URL
http://localhost:8019/rest/v1/activemq/network-connectors/REMOTE_ACTIVEMQ/Activemq-16/DemoBroker/local-network/force-update
Response Codes
| Status Code | Description |
| 204 | Object changed |
| 304 | Object not changed |
Example Response
-
Success Response (204-Object changed): Indicates that the specified ActiveMQ network connector was successfully updated. No response body is returned.
Response headers:
access-control-allow-credentials: true access-control-allow-origin: http://localhost:8019
date
server
vary -
Example Error Response: 404-Error: Not Found
{ "type": "pcf", "messageId": "WGS0004", "message": "Not found", "explanation": "Not found record.", "action": "Requested object not exists.", "code": "2085", "codeStr": "MQRC_UNKNOWN_OBJECT_NAME" }