Genesys CTI User Forum

Genesys CTI User Forum => Genesys CTI Technical Discussion => Topic started by: eugene on November 12, 2018, 04:06:45 PM

Title: Any capability of start/stop Genesys apps via REST service?
Post by: eugene on November 12, 2018, 04:06:45 PM
Is anyone aware of any capability to start/stop Genesys applications via REST services?

Thanks,
eugene
Title: Re: Any capability of start/stop Genesys apps via REST service?
Post by: hsujdik on November 12, 2018, 08:59:49 PM
I know GAX has a RESTFul API for that, but it lacks documentation.
Title: Re: Any capability of start/stop Genesys apps via REST service?
Post by: eugene on November 13, 2018, 12: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.
Title: Re: Any capability of start/stop Genesys apps via REST service?
Post by: jerry_jeremiah on November 21, 2018, 08:28:21 PM
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...

Title: Re: Any capability of start/stop Genesys apps via REST service?
Post by: hsujdik on November 21, 2018, 10:43:26 PM
[quote author=jerry_jeremiah link=topic=11178.msg50957#msg50957 date=1542832101]
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...


[/quote]

If I remember well, you can [b]GET[/b] http://gax-host:gax-port/gax/api/scs/applications (or something like this)
Title: Re: Any capability of start/stop Genesys apps via REST service?
Post by: jerry_jeremiah on November 22, 2018, 03:49:13 AM
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)
Title: Re: Any capability of start/stop Genesys apps via REST service?
Post by: eugene on November 22, 2018, 03:51:57 PM
[quote author=jerry_jeremiah link=topic=11178.msg50957#msg50957 date=1542832101]
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...
[/quote]


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

Title: Re: Any capability of start/stop Genesys apps via REST service?
Post by: eugene on November 22, 2018, 03:57:17 PM
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.