/api/getEvents only get the request NVR server event?
AnsweredHi guys,
I encountered a problem that "/api/getEvents" is only get events which is stored in the request server. Now I got several NVR NX servers connect together, how can i get the rest of events from other server in one query?
Thanks in advance !
-
Hi Joe T,
Indeed, the request is still server-wide.
The implementation update is under development now, but won't get into the upcoming 5.0 version.
As a workaround I would suggest using the below approach:
- Retrieve the ids for all servers merged into system with ec2/getMediaServers request
- Retrieve the events from all servers using one of the options and combine them together:
- Use the http://<server_address>:<server_port>/proxy/http/<server_guid>/api/getEvents to get the events from the particular server with the id=server_guid
- Use the standard request uri but add an http header to pass the request to the server with id=server_guid:
X-server-guid: <server_guid>
Please sign in to leave a comment.
Comments
3 comments