Type Filter Configuration
Overview
Type filter is a feature in queries that controls whether to include subtypes of CI types. CI types in CMDB typically have inheritance relationships. For example, Computer is the parent type of Windows and Linux. Type filter determines whether query results include only the parent type's instances or also include all or some subtypes' instances.
What this feature can do for you:
- Precisely control the CI type scope of queries
- Flexibly handle queries involving parent-child type relationships
- Implement fine-grained type filtering strategies
Main Features
- Include Subtypes: Include all subtypes' instances
- Include Self Only: Include only the root CI type's own CI data
- Customize Types: Set inclusion or exclusion rules for each subtype individually
Filter Option Description
| Option | Description | Use Case |
|---|---|---|
| Include Subtypes | Query results include instances of this type and all its subtypes | Need to query the complete type hierarchy and get all related instances |
| Include Self Only | Query results include only this type's instances, excluding subtypes | Only need exact type matching, excluding all subtypes |
| Customize Types | Set inclusion or exclusion rules for specific subtypes | Need fine-grained control over inclusion or exclusion of certain subtypes |
Customize Types
For complex query needs, you can use the Customize Types option to include only specific CI types.
Interface Layout
After selecting a CI category on the left, the right conditions have the following configuration options:
Dropdown List:
- Include: Query results include CI instances of the specified type
- Exclude: Query results exclude CI instances of the specified type
Apply to All Subclasses Checkbox:
- Checked: Apply the above include or exclude condition to the selected CI type itself and all its subtypes
- Unchecked: Apply the above include or exclude condition only to the type itself
Configuration Examples
Scenario 1: Query All Computers
| Setting | Value | Description |
|---|---|---|
| Type | Computer | CI type |
| Filter Mode | Include Subtypes | Include all computer subtypes |
Scenario 2: Query Only Open Source Web Servers
| Setting | Value | Description |
|---|---|---|
| Type | Web Server | CI type |
| Filter Mode | Customize Types | Use fine-grained control |
| Apache Web Server | Include | Include Apache Web Server |
| Nginx Web Server | Include | Include Nginx Web Server |