List things by model
GET/iot/models/:modelId/things
Retrieves list of things belonging to specified model with pagination metadata.
Authorization Action:
core:models:getThings
Request
Path Parameters
Unique model identifier.
Query Parameters
Number of items to skip during retrieval.
Possible values: >= 1
and <= 100
Default value: 10
Size of the subset to retrieve.
Possible values: [name
, id
]
Default value: id
Order type.
Possible values: [asc
, desc
]
Default value: desc
Order direction.
Responses
- 200
- 400
- 401
- 404
- 422
- 500
Data retrieved.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- DeviceMetadata
- EdgeMetadata
- ]
things object[]
Unique thing identifier generated by the service.
Free-form thing name.
Auto-generated access key.
metadata object
Possible values: [device
]
Possible values: [edge
]
Total number of items.
Number of items to skip during retrieval.
Maximum number of items to return in one page.
{
"things": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"key": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"metadata": {}
}
],
"total": 0,
"offset": 0,
"limit": 0
}
Failed due to malformed query parameters.
Missing or invalid access token provided.
Model does not exist.
Database can't process request.
Unexpected server error.
- application/json
- Schema
Schema
- string byte