How to cut off a connected user ID from IBM MessageSight?

Multi tool use
How to cut off a connected user ID from IBM MessageSight?
How can I kick out a user that is already connected to IBM MessageSight (MQTT)?
This is the scenario:
So if removing user ID does not cut off existing connections, how can I get it done? Any command or API for this purpose?
1 Answer
1
There may be a way to disconnect the user. See these examples which are different based on if you are using v1.2 or v2.0 Beta
In V1.2 - refer to the following Knowledge Center topic on "imaserver close Connection" call.
https://www.ibm.com/support/knowledgecenter/SSCGGQ_1.2.0/com.ibm.ism.doc/Reference/SecurityCmd/cmd_imaserver_close_connection.html?lang=en
In v2.0, use REST API to close a connection:
HTTP Method: POST
URI: ima/v1/service/close/connection
Payload:
POST
ima/v1/service/close/connection
{
"UserID":"string",
"ClientID":"string",
"ClientAddress":"string"
}
curl Example:
curl -X POST http://10.10.129.1:9089/ima/v1/service/close/connection -d '{ "ClientAddress":"180.43.2.1", "UserID":"glenn", "ClientID":"xxxx" }'
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.