Author Topic: Any capability of start/stop Genesys apps via REST service?  (Read 258 times)

This topic contains a post which is marked as Best Answer. Press here if you would like to see it.

Offline eugene

  • Jr. Member
  • **
  • Posts: 73
  • Karma: 2
Any capability of start/stop Genesys apps via REST service?
« on: November 13, 2018, 01:06:45 AM »
Is anyone aware of any capability to start/stop Genesys applications via REST services?

Thanks,
eugene

Offline hsujdik

  • Sr. Member
  • ****
  • Posts: 284
  • Karma: 14
    • Genesys Brasil
Re: Any capability of start/stop Genesys apps via REST service?
« Reply #1 on: November 13, 2018, 05:59:49 AM »
I know GAX has a RESTFul API for that, but it lacks documentation.

Offline eugene

  • Jr. Member
  • **
  • Posts: 73
  • Karma: 2
Re: Any capability of start/stop Genesys apps via REST service?
« Reply #2 on: November 13, 2018, 09:16:58 AM »
Thanks for that - let me post to the developer site and log tech support ticket to see if they have any info on that.

Marked as best answer by eugene on November 23, 2018, 09:50:16 AM

Offline jerry_jeremiah

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
Re: Any capability of start/stop Genesys apps via REST service?
« Reply #3 on: November 22, 2018, 05:28:21 AM »
So GAX POSTS to http://gax-host:gax-port/gax/api/scs/applications/start and http://gax-host:gax-port/gax/api/scs/applications/stop with the following JSON content:

{"controlobjectid":"123"}

How you find out which object has 123 as its ID is another question...


Offline hsujdik

  • Sr. Member
  • ****
  • Posts: 284
  • Karma: 14
    • Genesys Brasil
Re: Any capability of start/stop Genesys apps via REST service?
« Reply #4 on: November 22, 2018, 07:43:26 AM »
So GAX POSTS to http://gax-host:gax-port/gax/api/scs/applications/start and http://gax-host:gax-port/gax/api/scs/applications/stop with the following JSON content:

{"controlobjectid":"123"}

How you find out which object has 123 as its ID is another question...



If I remember well, you can GET http://gax-host:gax-port/gax/api/scs/applications (or something like this)

Offline jerry_jeremiah

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
Re: Any capability of start/stop Genesys apps via REST service?
« Reply #5 on: November 22, 2018, 12:49:13 PM »
That returns a list of controlobjectids and their state but not their names.
And http://gax-host:gax-port/gax/api/scs/applications/123 gives back the state just for the controlobjectid requested (but still no name)

Offline eugene

  • Jr. Member
  • **
  • Posts: 73
  • Karma: 2
Re: Any capability of start/stop Genesys apps via REST service?
« Reply #6 on: November 23, 2018, 12:51:57 AM »
So GAX POSTS to http://gax-host:gax-port/gax/api/scs/applications/start and http://gax-host:gax-port/gax/api/scs/applications/stop with the following JSON content:

{"controlobjectid":"123"}

How you find out which object has 123 as its ID is another question...


great solution - i haven't tried this yet but looks promising.


Offline eugene

  • Jr. Member
  • **
  • Posts: 73
  • Karma: 2
Re: Any capability of start/stop Genesys apps via REST service?
« Reply #7 on: November 23, 2018, 12:57:17 AM »
just tried it now this works, but prerequisite is that you login and establish session with GAX before issue the subsequent start/stop API.

Jerry the controlobjectdbid here is just the application's DBID in CME.