REST API - Camera status online/offline

Hi,

How can I check camera status without SOAP call to recording server ?

I found EventsAndStateWebSocketApiPython sample, can be this endpoint https://localhost/api/rest/v1/eventTypes and web socket connection ?

If yes which event type can be used for this ?

Thanks

You cannot get status via REST, you can get it via Web Sockets and you are looking at the right sample.

There are two samples.

The one you mention:

https://doc.developer.milestonesys.com/html/index.html?base=samples/protocolsamples/eventsandstatewebsocketapipython/readme.html&tree=tree_3.html

and

https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/eventandstateviewer/readme.html&tree=tree_2.html

The latter sample uses the Web Socket API indirectly, it might be an eye-opener for the event types..

There is further documentation on the WebSocket API here..

https://doc.developer.milestonesys.com/mipvmsapi/api/events-ws/v1/