This article shows how to create a new ActiveMQ remote manager using the REST API.
Create ActiveMQ Remote Manager
POST /activemq/remote-mgrs
Creates a new remote manager connection for ActiveMQ.
Required Attributes
nodeNamemanagerNamegeneral.url
Query Parameters
| Parameter | Type | Description |
|---|---|---|
validateAccessForUser |
string |
Whether to validate access for the user. |
Request Body
{
"wgsName": "MQM",
"nodeName": "string",
"managerName": "string",
"uri": "string",
"general": {
"url": "string",
"username": "string",
"password": "string",
"ignoreSslCert": true,
"keyStorePath": "string",
"keyStorePassw": "string",
"trustStorePath": "string",
"trustStorePassw": "string",
"jmxDomainName": "string"
}
}Example Request
curl -X 'POST' \
'http://<hostname>:8019/rest/v1/activemq/remote-mgrs' \
-H 'accept: */*' \
-H 'Authorization: Basic QWRtaW46YWRtaW4=' \
-H 'Content-Type: application/json' \
-d '{
"wgsName": "MQM",
"nodeName": "CMACTIVEMQ",
"managerName": "Activemq-server",
"uri": "http://<hostname>:8080",
"general": {
"url": "http://<hostname>:8080",
"username": "Test",
"password": "string",
"ignoreSslCert": true,
"keyStorePath": "string",
"keyStorePassw": "string",
"trustStorePath": "string",
"trustStorePassw": "string",
"jmxDomainName": "string"
}
}'Response Codes
-
201 Created: Object successfully created. -
304 Not Modified: Object not created. -
*: Error occurred, returnsErrorPojo.
Response Header
201 Created: Object successfully created.
access-control-allow-credentials: true
access-control-allow-origin: http://<hostname>:8019
content-length: 0
date: Thu,25 Sep 2025 09:24:04 GMT
server: Jetty(10.0.22)
vary: Origin