The INSTANCEOF operator in reference qualifiers
-
- UpdatedFeb 1, 2024
- 1 minute read
- Washington DC
- Platform Field Administration
You can use the INSTANCEOF operator in a reference qualifier to shorten or simplify a complex class qualifier.
For example, use the INSTANCEOF operator for a reference field to the cmdb_ci table to specify that all subclasses of a class are included in the results. The following reference qualifier returns all servers, including Linux, UNIX, Windows, and so on, because each of those subclasses extend the cmdb_ci_server class.
In another example, you can simplify the following reference qualifier in a similar way.
Using the INSTANCEOF operator, the reference qualifier is rewritten as follows because the server subclasses extend the cmdb_ci_computer class.