Object containing filters and sort order for querying managed objects. Supported filters are:
{__and: [{__has: 'c8y_IsDevice'}, {'count': {__gt: 0}}]}
.{__or: [{__bygroupid: 10300}, {__bygroupid: 10400}]}
.{'status': 'AVAILABLE'}
(no nested object required).{'count': {__lt: 10}}
.{'count': {__gt: 0}}
.{'status': {__in: ['AVAILABLE', 'UNAVAILABLE']}}
.{__not: {'status': 'AVAILABLE'}}
.{__bygroupid: 10300}
.{__has: 'c8y_IsDevice'}
.$filter=()… $orderby=…
parts of a query and keeps only what's between the most
exterior parentheses of the $filter.
EXAMPLE: takes a query of the form
$filter=(name eq 'RaspPi*') $orderby=name asc
and turns it into
name eq 'RaspPi*'
This is necessary for searching for smart groups, which are identified by their own query
that needs to be passed through.The order is specified by an array of field paths and sort direction (1 for ascending, -1 for descending), e.g.:
{__orderby: [{'creationTime': -1}, {'name': 1}], __filter: {...}}
Builds query string from provided query object.
Returns
Returns a query string ready to be sent in request params to backend.
Example