This article contains a list of REST API commands that pertain to EMS Managers.
For a walk-through of the Navigator REST API using the demo site, see Using the REST API using the Navigator demo system. No installation is required. The article Performing REST API operations using the Swagger UI includes three detailed examples, as well as instructions for issuing plain text or JSON-formatted MQSC Commands through the REST API.
Search EMS Managers
GET /ems/managers
Purpose: Lists EMS Managers with a certain name (if specified) on a certain node (if specified).
Curl example
curl -X GET "http://jenkins.nastel.com:8019/rest/v1/ems/managers?nodeName=EMS%2A&attributes=%2A" -H "accept: application/json" -H "Authorization: Basic QWRtaW46YWRtaW4="
Example Response
[
{
"wgsName": "MQM",
"nodeName": "EMSNodeTest7",
"managerName": "EMS-SERVER",
"uri": "/rest/v1/ems/managers/EMSNodeTest7/EMS-SERVER",
"general": {
"serverName": "EMS-SERVER",
"url": "tcp://127.0.0.1:7654"
},
"state": {
"lastUpdated": 1640712094000,
"objectState": "Active",
"emsState": "Active",
"processId": 3804,
"runtimeModulePath": "/opt/Test/nastel/tibco/ems/8.4/bin/lib/64:/opt/Test/nastel/tibco/ems/8.4/lib/64",
"topicCount": 2501,
"queueCount": 6286,
"connectionCount": 2,
"sessionCount": 2,
"producerCount": 1,
"consumerCount": 1,
"durableCount": 3,
"logFileSize": 15948,
"pendingMsgCount": 425356,
"pendingMsgSize": 119582925,
"maxMsgMemory": 1073741824,
"msgMemory": 139691591,
"msgMemoryPooled": 139692032,
"inboundMsgRate": 0,
"outboundMsgRate": 0,
"diskReadRate": 0,
"diskWriteRate": 0,
"versionInfo": "8.4.0.14",
"isFSyncEnabled": false,
"isRoutingEnabled": true,
"syncDbSize": 1536,
"syncStoreType": "File",
"syncStoreFreeSpace": 476,
"syncStoreUsedSpace": 1024,
"syncStoreMsgCount": 0,
"syncStoreMsgBytes": 0,
"syncStoreSwappedMsgCount": 0,
"syncStoreSwappedMsgBytes": 0,
"asyncDbSize": 318677504,
"asyncType": "File",
"asyncFreeSpace": 68546524,
"asyncUsedSpace": 250126848,
"asyncMsgCount": 425356,
"asyncMsgBytes": 121709599,
"asyncSwappedMsgCount": 0,
"asyncSwappedMsgBytes": 0
},
"customProperties": {}
}
]
Read EMS Manager Data
GET /ems/managers/{nodeName}/{managerName}
Purpose: Lists EMS Managers on the specified node with names that match the specified managerName criteria.
Curl example
curl -X GET "http://jenkins.nastel.com:8019/rest/v1/ems/managers/EMSNodeBOA7/EMS-SERVER?attributes=%2A" -H "accept: application/json" -H "Authorization: Basic QWRtaW46YWRtaW4="
Example Response
{
"wgsName": "MQM",
"nodeName": "EMSNodeTest7",
"managerName": "EMS-SERVER",
"uri": "/rest/v1/ems/managers/EMSNodeTest7/EMS-SERVER",
"general": {
"serverName": "EMS-SERVER",
"url": "tcp://127.0.0.1:7654"
},
"state": {
"lastUpdated": 1640714494000,
"objectState": "Active",
"emsState": "Active",
"processId": 3804,
"runtimeModulePath": "/opt/Test/nastel/tibco/ems/8.4/bin/lib/64:/opt/Test/nastel/tibco/ems/8.4/lib/64",
"topicCount": 2501,
"queueCount": 6286,
"connectionCount": 2,
"sessionCount": 2,
"producerCount": 1,
"consumerCount": 1,
"durableCount": 3,
"logFileSize": 15948,
"pendingMsgCount": 425356,
"pendingMsgSize": 119582925,
"maxMsgMemory": 1073741824,
"msgMemory": 139691591,
"msgMemoryPooled": 139692032,
"inboundMsgRate": 0,
"outboundMsgRate": 0,
"diskReadRate": 0,
"diskWriteRate": 0,
"versionInfo": "8.4.0.14",
"isFSyncEnabled": false,
"isRoutingEnabled": true,
"syncDbSize": 1536,
"syncStoreType": "File",
"syncStoreFreeSpace": 476,
"syncStoreUsedSpace": 1024,
"syncStoreMsgCount": 0,
"syncStoreMsgBytes": 0,
"syncStoreSwappedMsgCount": 0,
"syncStoreSwappedMsgBytes": 0,
"asyncDbSize": 318677504,
"asyncType": "File",
"asyncFreeSpace": 68546524,
"asyncUsedSpace": 250126848,
"asyncMsgCount": 425356,
"asyncMsgBytes": 121709599,
"asyncSwappedMsgCount": 0,
"asyncSwappedMsgBytes": 0
},
"customProperties": {}
}