Controlled Fetching of device attributes using web API
AnsweredHi,
I'm using the system API: /ec2/ as well as the server API /api/ for our Nx integration
In order to retreive device attributes I'm using the following call:
- https://<host>:7001/ec2/getCamerasEx
I would like to know if there is any API call for getting just the 'id' property / value for all the cameras in the system (without the rest of the attributes).
In addition, is it possible to retrieve device attributes in a controlled manner selecting specific attributes to be fetched or at least creating some sort of pagination?
0
-
Hi ST team,
The getCamerasEx is the proper call to make, there is no call to solely display the cameraId.
I'll move this topic to the Developer section, maybe my colleagues have something to add to make your life easier.0 -
Hi Norman,
Is there an API call that we can do for getting the cameras just from one server and not getting the cameras from all the servers?we use now: getCamerasEx but we are working with ~1000 cameras with a huge payload and the http call take long time.Our target is to get all cameras ids in the system though minimize the load created by fetching information from one server at a time0 -
Hi ST team,
With the getMediaServersEx api call you can filter the relevant server ID, and then with the getCamerasEx command you can retrieve the camera ID's of that specific server like this:
http://localhost:7001/ec2/getCamerasEx?id=<serverId>
0
Please sign in to leave a comment.
Comments
3 comments