web stats
Channel live connection states - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 08-23-2019, 02:00 AM
gyanp8 gyanp8 is offline
What's HL7?
 
Join Date: Jan 2018
Posts: 1
gyanp8 is on a distinguished road
Default Channel live connection states

I am not able to get channel live connection status i.e.(idle, receiving, connected). I am using mirth connect version 3.6.2 to find out the live connection status of the channel.
Reply With Quote
  #2  
Old 08-28-2019, 02:51 AM
moon moon is offline
OBX.1 Kenobi
 
Join Date: Aug 2019
Posts: 31
moon is on a distinguished road
Smile

Mirth versions 3.4 and higher expose a REST api, also referred to as the Client API. There is self-hosted documentation if you click on the Client API link while logged in to the Administrator client. You can also visit in your browser yourmirthhost:8443/api, assuming you haven't changed the default port. There is additional information in the official User Guide, which can be downloaded from nextgen.com/products-and-services/ The REST path in my answer is under the Extension Services section of the online documentation.
Reply With Quote
  #3  
Old 08-30-2019, 09:11 AM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 1,188
agermano is on a distinguished road
Default

Well, that looks familiar :-p https://stackoverflow.com/a/57518768/10519543

Code:
GET /extensions/dashboardstatus/channelStates/{channelId}
That's the actual method from the client API that returns what you're asking about.


You didn't copy the full link to the download page: https://www.nextgen.com/products-and...gine-Downloads
Reply With Quote
  #4  
Old 02-06-2020, 10:43 PM
moon moon is offline
OBX.1 Kenobi
 
Join Date: Aug 2019
Posts: 31
moon is on a distinguished road
Default

When I called https://localhost:8443/api/extension.../channelStates

It told that Unauthorized.
How to login via coding.
Reply With Quote
  #5  
Old 02-07-2020, 05:02 AM
obsessio obsessio is offline
Mirth Guru
 
Join Date: Mar 2015
Location: Turkey
Posts: 179
obsessio is on a distinguished road
Default

You first need to invoke the /users/_login endpoint. You will get a JSESSIONID token that you need to pass on all subsequent requests. Finally, make sure to invoke the logout endpoint when you've finished.
Also after 3.5.0 REST API supports basic auth.
Reply With Quote
  #6  
Old 02-09-2020, 07:59 PM
moon moon is offline
OBX.1 Kenobi
 
Join Date: Aug 2019
Posts: 31
moon is on a distinguished road
Default

Quote:
Originally Posted by obsessio View Post
You first need to invoke the /users/_login endpoint. You will get a JSESSIONID token that you need to pass on all subsequent requests. Finally, make sure to invoke the logout endpoint when you've finished.
Also after 3.5.0 REST API supports basic auth.
When I invoke https://localhost:8443/api/users/_login, It told that Method Not Allowed.
Reply With Quote
  #7  
Old 02-10-2020, 02:07 AM
obsessio obsessio is offline
Mirth Guru
 
Join Date: Mar 2015
Location: Turkey
Posts: 179
obsessio is on a distinguished road
Default

Please be sure that to invoke with correct parameters.
Reply With Quote
  #8  
Old 02-10-2020, 06:24 AM
moon moon is offline
OBX.1 Kenobi
 
Join Date: Aug 2019
Posts: 31
moon is on a distinguished road
Default

https://localhost:8443/api/users/_lo...password=admin
Is that correct?
Reply With Quote
  #9  
Old 02-12-2020, 06:05 AM
obsessio obsessio is offline
Mirth Guru
 
Join Date: Mar 2015
Location: Turkey
Posts: 179
obsessio is on a distinguished road
Default

Invoke with POST request method
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 10:21 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation