I want to retrive multiple device attributes from a single HTTP API call. TB allows me to perform get request to retrive device data with corresponding access token specifying in the request. Is there any options to get all devices data from device group?
When you say multiple device attributes, are you asking for:
Get ALL attributes from ONE device? If so you can use:
curl -v -X GET "https://thingsboard.cloud/api/v1/$ACCESS_TOKEN/attributes
Get ALL attributes for ALL devices in a specific device group. This is harder, you will need to use the full rest api found at https://cloud.thingsboard.io/swagger-ui.html
If you need option 2, you will have to have a custom script to get a JWT token for your user credentials (or a low access level api user account) and use that to authenticate REST calls with the above link.
Pseudo process:
entity-group-controller > getEntityGroupsByType
with groupType = 'DEVICE'
entity-group-controller > getEntities
calltelemetry-controller > getAttributes
call.That's far more than 1 HTTP call though...
You could wrap it into a function so to make it easier to use, but I don't think you can reduce the number of calls further.