TIP: In this chapter, base entity refers to the entity specified in the URL route. For example, in the request GET /api/inventory/machines?filtering=software.name eq Word, machine is the base entity, while software is a sub-entity. The API query engine determines how to mesh multiple entities. |
Filtering is accomplished using the filtering query parameter. A comma is used to separate multiple filters. All filters are matched in the returned data set. Each filter is specified by an optional entity name, a field name, an operator, and a value. If the entity is not provided, the base entity is assumed. A period separates an entity and a field name. A space must separate either end of the operator.
Casting is as broad as possible, however if the field type does not match the operator (for example, contains on an integer), an error is returned.
The standard operators are as follows:
• |
lt: Less than |
• |
le: Less than or equal |
• |
ge: Greater than or equal |
• |
eq: Equal |
• |
ne: Not equal |
• |
neq: Not equal |
• |
co: Contains |
• |
nc: Does not contain |
• |
nco: Does not contain |
• |
st: Starts with |
• |
ns: Does not start with |
• |
nst: Does not start with |
• |
en: Ends with |
• |
end: Ends with |
• |
nen: Does not end with |
• |
nend: Does not end with |
• |
in: In set (values separated by semicolon) |
• |
nin: Not In set (values separated by semicolon) |
All machines named xxx:
All machines whose name contains the string xxx
All machines whose name does not contain xxx, and an ID value greater than 1000:
All machines whose name does not contain xxx:
Machines whose IDs are 100, 101 and 108:
All machines with a software title zoo installed:
All machines with ID values greater than 100 and a software title zoo installed:
The existence of associated data in sub-entities can be tested using the following operators.
• |
ex: Exists |
• |
nex: Does not exist |
© 2024 Quest Software Inc. ALL RIGHTS RESERVED. 이용 약관 개인정보 보호정책 Cookie Preference Center