Get simple list of devices via API

#1

Hi, When using the API is there a way to return just a list of devices or other parameters without getting the entire database.

For example,

curl -i ‘http://localhost:7557/devices/

seems to return the entire database but I’m looking to just return a simple list of every “_id” or a list of just every “InternetGatewayDevice.DeviceInfo.SerialNumber”.

I know I can parse all the returned JSON data and create the simple list but I’m trying to avoid collecting so much unnecessary data.

Thanks,

#2

include projection in your query. API will send only parameters those are included in the projection

#3

Exactly what I was looking for. Thank you.