Wowza Community

REST API: how to get the default profile used by a live application?

I’m using this endpoint to list all live applications

http://" . $ip . ":8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/live

Then I’m using this endpoint to get bytesin and bytesout and so on

http://" . $ip . “:8087/v2/servers/defaultServer/vhosts/defaultVHost/applications/” . $appName . “/instances/definst/incomingstreams/” . $profile . "/monitoring/current

Notice $profile, sometimes it’s, or mystream.stream_360p and so on, depends on how we do the transcoding and if it

Now I have a hardcoded array, but that gives faulty results, I need to know from the rest API what is the default profile that a live application uses so that I can send it as a parameter to the second endpoint.

How to do that? Which endpoint returns that information?