Starting, restarting and stopping the IBM IoT MessageSight server by using REST Administration APIs
System administrators can restart and stop the IBM® IoT MessageSight server by using REST Administration APIs.
About this task
Procedure
Example
The following example uses cURL to show how a GET method is used to view the status of the
server:
curl -X GET http://127.0.0.1:9089/ima/v1/service/status
The following example shows a successful example response to the GET method used to view the status of the server:
{
"Version":"v1",
"Server": {
"Name": "TestSystem:9089",
"UID": "aFWxYf32",
"Status": "Running",
"State": 1,
"StateDescription": "Running (production)",
"ServerTime": "2016-03-04T14:46:53.081Z",
"UpTimeSeconds": 4134,
"UpTimeDescription": "0 days 1 hours 8 minutes 54 seconds",
"Version": "2.0 20160304-0400",
"ErrorCode": 0,
"ErrorMessage": ""
},
"Container": {
"UUID":"034c91ce828a4f5c2c21d7cd7f04628368b63bd308825ec2d9dab5096ff04ca0"
},
"HighAvailability": {
"Status": "Inactive",
"Enabled": false
},
"Cluster": {
"Status": "Inactive",
"Enabled": false
},
"Plugin": {
"Status": "Inactive",
"Enabled": false
},
"MQConnectivity": {
"Status": "Active",
"Enabled": true
},
"SNMP": {
"Status": "Active",
"Enabled": true
}
}
The following example uses cURL to show how a POST method is used to restart the server in
production mode without cleaning the
store:
curl -X POST \
-H 'Content-Type: application/json' \
-d '{
"Service": "Server",
"CleanStore": false
}
' \
http://127.0.0.1:9089/ima/v1/service/restart
An example response to the POST
method:
{
"Version": "v1",
"Code": "CWLNA6011",
"Message": "The requested configuration change has completed successfully ."
}
The following example uses cURL to show how a POST method is used to stop the
server:
curl -X POST \
-H 'Content-Type: application/json' \
-d '{
"Service": "Server"
}
' \
http://127.0.0.1:9089/ima/v1/service/stop
An example response to the POST
method:
{
"Version": "v1",
"Code": "CWLNA6011",
"Message": "The requested configuration change has completed successfully ."
}