Wowza Community

How to list all live applications?

Wowza 4.8.5, REST api, how to list all live applications? I want to get their names so I can iterate through them.

I think I found it

https://www.wowza.com/docs/application-management-query-examples#listCurl

curl -X GET \
-H 'Accept:application/json; charset=utf-8' \
http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live

And then you to get the live apps

$live = json_decode($response, true);
$live = $live['transcoderConfig']['templates']['templates'];
1 Like

Awesome- that’s it. Here is the call to get the names for all incoming streams for an application if you need this as well.

curl -X GET --header 'Accept:application/json; charset=utf-8' http://localhost:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications/live/instances/_definst_

There is a Java method also to view all the stream names:
appInstance.getStreams().getPublishStreamNames();

1 Like

Awesome as always! Thank you so much!

1 Like