|
Parameter Name
|
Description
|
Base Type
|
|---|---|---|
|
networkName
|
The network name on which to filter. The query will only return results found from Things in that network.
|
STRING
|
|
networkParentNode
|
The name of the top node in the network that is specified in networkName. The query will return all children from the specified parent node in the network.
|
STRING
|
|
networkMaxDepth
|
The level at which to look for children of the parent node. 1 returns direct children and 2 returns children of children. If it is set to 0 or default/null, it returns the full hierarchy of children.
|
INTEGER
|
|
offset
|
The offset of the result by the specified value. For example, if there are 200 results in the database with an offset of 5, results 5 to 200 (for a total of 195) are returned.
You can combine offset with maxItems to simulate pagination. The further you query into a large number of results, query time may be slower.
For example, Things 1 to 1000 exist and maxItems is 5, so each page shows 5 results:
• Page 1: offset is 0. The first 5 results are returned since maxItems is 5.
• Page 2: offset is 5. Results 6 through 10 are returned.
• Page 3: offset is 10. Results 11 through 15 are returned.
• And so on.
In this example, the number of returned results is low, so query time is fast.
|
NUMBER
|
|
basicPropertyNames
|
Lists the names of the basic properties.
|
INFOTABLE
|
|
withPermissions
|
A BOOLEAN parameter (true or false) that specifies whether permissions should be considered. If true, the service will check for permissions before performing actions.
|
BOOLEAN
|
|
nameMask
|
Specifies a pattern or mask for filtering names.
|
STRING
|
|
propertyNames
|
Lists the names of properties that you want to retrieve or manipulate.
|
INFOTABLE
|
|
query
|
Defines the query parameters for filtering results.
|
QUERY
|
|
networkName
|
Specifies the name of the network.
|
STRING
|
|
maxItems
|
Indicates the maximum number of items required, similar to the page size in pagination. This is useful for controlling the number of items returned in a single page of results.
|
NUMBER
|
|
tags
|
Data Tags to be filtered.
|
TAGS
|
// result: INFOTABLE dataShape: "RootEntityList"
let result = ThingTemplates["GenericThing"].QueryImplementingThingsOptimized({
networkParentNode: undefined /* STRING */,
networkMaxDepth: undefined /* INTEGER {"defaultValue":0} */,
maxItems: undefined /* NUMBER {"defaultValue":500} */,
basicPropertyNames: undefined /* INFOTABLE {"dataShape":"EntityList"} */,
withPermissions: undefined /* BOOLEAN {"defaultValue":false} */,
offset: undefined /* NUMBER {"defaultValue":0} */,
nameMask: undefined /* STRING */,
propertyNames: undefined /* INFOTABLE {"dataShape":"EntityList"} */,
query: undefined /* QUERY */,
networkName: undefined /* STRING */,
tags: undefined /* TAGS */
});