Create a relationship and a reference
- UpdatedAug 3, 2023
- 7 minutes to read
- Vancouver
- Service Mapping
As part of creating or modifying a discovery pattern, you can use the Relation and/or Reference condition to create relationships and references between CIs and their related items. This operation is relevant for both infrastructure and application patterns that Discovery uses for horizontal discovery.
Before you begin
Role required: pd_admin
Decide on the nature of relationship or reference that you are going to create.
- Check if the CI type is dependent by performing the following steps:
- Navigate to CI Class Manager and click Open Hierarchy.
- Find the CI type in the hierarchy.
- Click Identification Rule on the left of the CI Class form.
- Check if the CI type is dependent or independent.
Figure 1. Example of a dependent rule for Load Balancer Pool Member
- If the CI is dependent, click Dependent Relationships
and check the dependent relationship rules.
These rules define dependency structure of the CI types and the relationship types. For example, you can discover a load balancer pool with pool members belonging to it. To correctly reflect the type of relationship between these two CIs, create a containment rule, which defines the load balancer pool as the owner of pool members: Owns::Owned by. Refer to Dependent relationship rules to learn more.
For independent CI types without dependent relationship rules defined for them, you can define any relationship.
(Optional for application patterns used for horizontal discovery) Correctly define operations preceding the Create Relationship/Reference operation in the pattern. These operations must discover CIs for which you want to create a relationship or a reference. Use standard parsing operations to enter discovered CI data as temporary variables in the tabular format.
(Optional for creating a reference) Navigate to the relevant table definitions for the parent and the child CIs and choose the field to use as a reference field.
Navigate to the relevant pattern step:
- On the pattern form, select the relevant identification section.
- Select the relevant step or create a pattern step by clicking
.
Basic knowledge of programming is desirable.
About this task
Discovery uses some patterns to discover a CI with all its related CIs and non-CIs: Items that do not extend the Configuration Item [cmdb_ci] table.
CIs can have different relationships. Dependent relationship rules describe relationships between CIs. The identification engine uses these rules to identify CIs and determine if a specific CI exists in the CMDB or must be added to the CMDB.
If there is a relationship, the system uses the parent and child CI tables and creates a third table with data on the relationship between the parent and child CIs.
In addition to a relationship between CIs, you can create a reference connection between them. If a reference exists, then information about referenced child CIs appears at the bottom of the parent CI form. For example, all load balancer pool members appear on the form of the load balancer pool, which owns these members.

Procedure
Example





What to do next
- Continue editing the pattern by adding a new step and defining its operation or
- Finalize the pattern.