Is there a way to get access control information from a system using one of Milestone’s APIs that does not require the SDK. I see in the documentation of access control, the MIP SDK is the only option. Is there any alternative approach? For cameras, we are able to use the SOAP and websocket API for example. Are we able to use SOAP or another web based API for access control?
You can get information about available Access Control Systems and their units using the RESTful Config API. Reference for the needed calls here - MIP VMS RESTful Config API reference
New events coming from an Access Control System can be subscribed to using the Event Server’s WebSocket API - Milestone XProtect Events and Status WS API Reference
Here you will need to find the correct event types to subscribe to, but you should be able to capture new events coming from the Access Control System. The AC Event type ids depend on the specific integration, but you can use the EventAndStateViewer sample from the Component samples to help you with that (dump the ids of the different events to a file when you subscribe to them).
Thank you Georgi,
In the MIP VMS RESTful API reference, do you know where I can find the endpoint and field that corresponds to the liveness of a access control object. A controller, a reader, door, or any other access control devices. Additionally, is the endpoint to get the doors found in the AccessControlUnit endpoint or is it elsewhere?
All the best,
Elan
To retrieve the configured access control units, use the Configuration REST API: GET /api/rest/v1/accesscontrolgroups/{id}/accesscontrolunits
This endpoint returns static configuration data. For details about the available properties and response format, see the Get all accessControlUnits in an access control system documentation
If by liveness you mean the current operational status of an access control unit, that information is not available through the Configuration REST API.
This overlaps with Georgi’s earlier recommendation, but I strongly encourage you to run the Event and State Viewer sample and observe the events and states exposed by your system.
If the Configuration REST API, Events and State WebSocket API, or Event and State Viewer sample does not behave as expected, please share: