first rest api call

Good morning,
I’m trying to use the rest api to get information about my streaming application. but any call I make, the result is always the same:
{
Id = 27,
Status = WaitingForActivation,
Method = “{null}”,
Result = “{Non ancora calcolato}”
}

Maybe there is some setting to set?
I am using the trial version

Thanks in advance

Hello @Davide_Rendina, I can share some resources with examples that may help you out. This is how you query the Engine to get stream data:

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

We have this video tutorial as well to get you familiar with making REST API calls.

hello,
Thanks for the reply.
I use curl for windows, do you have to use a different syntax?
Also, if I were to call the API from a remote server and not from localhost, can I refer to some examples?
thank you,
good day

hello,
I managed to make the call via cUrl but got this message:
{“message”:“Your IP address (myIp) has been blocked”,“wowzaServer”:“4.8.11+5”,“success”:false,“code”:“403”}
I have already tried to put my IP in the whiteList in the server.xml file but I get the same result
<IPWhiteList>127.0.0.1</IPWhiteList>
<IPWhiteList>xxx.xxx.xxx.xxx</IPWhiteList>

<IPWhiteList>127.0.0.1,xxx.xxx.xxx.xxx</IPWhiteList>

Found that using the search function of the Wowza documentation: Wowza docs.

You can specify that multiple IP addresses be allowed to connect by entering them as a comma-separated list and/or by using the wildcard (*) character

Connect to a remote Streaming Engine

Perfect through cUrl now I can use the API.
Is there any documentation regarding the use of the REST API through an Asp.Net application? in the forum I found a link but the page no longer exists.
Thank you

We do not have an ASP.net client. It is up to the user to generate a client library as the referenced Wowza page suggests.

https://www.wowza.com/docs/how-to-access-wowza-streaming-engine-swagger-documentation-with-swagger-codegen

There is discussion around this on Stack Overflow site though, so you may want to look a bit through there to find examples.