List all sensors
GET/devices
Returns a list of sensors in your tenancy.
Required scope(s): [devices.registry:read
]
Request
Query Parameters
If specified, only sensors in this Device Group will be returned.
Default value: true
If true, sensors in child Device Groups relative to your specified Device Group will be returned. If false, will return the sensors in that Device Group alone.
Ignored if group
is not specified.
Possible values: <= 100
Default value: 50
Pagination parameter; the number of returned sensors is limited to this value. Any value greater than 100 will be ignored.
Default value: 0
Pagination parameter; this number of sensors will be skipped before the list is returned. Any value below 0 will be ignored.
Responses
- 200
- 400
- 401
- 500
An array of device metadata.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
devices object[]
The latest device heartbeat, in seconds since epoch.
The device ID.
The location of this device within your device group hierarchy.
The number of sensors remaining for the list operation based on your input pagination parameters.
{
"devices": [
{
"heartbeat": 1692348210,
"name": "G111045",
"path": "Site 4/Stack 11/Row 7"
}
],
"remaining": 10
}
Your input parameters are invalid. A message is returned explaining the issue.
- application/json
- Schema
- Example (from schema)
Schema
object
{}
You are not authorized to perform this request.
- application/json
- Schema
- Example (from schema)
Schema
object
{}
An internal server error. Please contact Gardin Support for further assistance.
- application/json
- Schema
- Example (from schema)
Schema
object
{}