This article describes how to delete an existing ActiveMQ network connector using the REST API.
Endpoint
DELETE/activemq/network-connectors/{nodeName}/{managerName}/{brokerName}/{networkConnectorName}
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. |
| 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. |
waitForRead |
boolean | No | Wait for cache update. |
Example Request
curl -X 'DELETE' \ 'http://localhost:8019/rest/v1/activemq/network-connectors/REMOTE_ACTIVEMQ/Activemq-16/DemoBroker/local-network' \ -H 'accept: */*' \ -H 'Authorization: Basic <base64-encoded-credentials>
Request URL
http://localhost:8019/rest/v1/activemq/network-connectors/REMOTE_ACTIVEMQ/Activemq-16/DemoBroker/local-network
Response Codes
| Status Code | Description |
| 204 | Object Deleted |
| 304 | Object not changed |
Example Response
-
Success Response (204-Object changed): Indicates that the ActiveMQ network connector was successfully deleted. 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 (400-Error: Bad Request):
{ "type": "pcf", "messageId": "WGS0009", "message": "Object not deleted", "explanation": "Problem on deleting object, check PCF code value.", "action": "Resubmit request with a valid object.", "code": "115001", "codeStr": "EXIA_ACTIVEMQ_EXCEPTION", "exception": "Not expected client status: 500, type: java.util.NoSuchElementException, message: java.util.NoSuchElementException : Not connector matched the given name: local-network2" }