A CMDB relationship type in ServiceNow describes how two configuration items relate and how that connection reads in each direction. Dependency views make those connections visible so you can trace what a CI relies on and what may be affected by a change. Start with the relationship meaning, then interpret the map.
Define the CMDB relationship type before drawing connections
A CI relationship has three parts: a parent CI, a child CI, and a relationship type. The type gives the connection its meaning. Two records connected with the wrong type can produce a believable diagram while telling an incorrect story about the infrastructure.
Take an application that relies on a database. With Depends on::Used by, the application is the parent and the database is the child. Read from the application, it depends on the database. Read from the database, it is used by the application. Those descriptions express the same connection from opposite ends.
Parent does not automatically mean the physical host, organizational owner, or more important component. It is a position within a particular relationship. Establish the sentence you want the relationship to express before choosing either endpoint.
- Depends on::Used by expresses a dependency in which a problem or change in the child may affect the parent.
- Runs on::Runs describes software running on hosting hardware or a virtual machine.
- Contains::Contained by expresses containment between a CI and a contained item.
- Connects to::Connected by represents communication connections between elements.
- Manages::Managed by describes a management relationship between CIs.
Choose the relationship that describes the actual connection rather than using Depends on for everything. A network connection, containment boundary, and hosting relationship answer different questions. For the record structure behind these connections, see the CMDB relationship table guide.
Read a dependency view as a sequence of claims
Begin with the CI that prompted the investigation. Identify the neighboring CI, read the relationship descriptor, and establish which endpoint is the parent. Repeat that process along the path you are investigating. The shape of the diagram should help you navigate; it should not replace reading the connection.
For example, consider a hypothetical order application that depends on a database, while database software runs on a server. The first relationship expresses an application dependency. The second expresses a runtime arrangement. Together they provide a path worth investigating before server maintenance. They do not, by themselves, establish that the maintenance will cause an outage.
Ask three questions at each step: does this CI represent the component being discussed, does this type describe the connection, and is the direction correct? A similarly named test database or a reversed relationship can lead the investigation away from the production dependency.
Distinguish a direct neighbor from a CI reached through intermediate connections. When someone says that a service depends on a server, ask whether they mean a stored direct relationship or a path through other CIs. Record the intermediate items when explaining the finding. See CMDB dependency views and maps for the neighboring topic of map navigation.
Use suggested relationships to keep the model consistent
Suggested Relationship [cmdb_rel_type_suggest] associates relationship types with CI classes. Suggested relationships can be managed through Configuration > Suggested Relationships or CI Class Manager. This gives model owners a place to define the relationships appropriate for a class instead of leaving each editor to make an unrelated choice.
Separate that guidance from relationship governance rules. Governance rules constrain relationship types or directions between specified CI types. Suggestions help a user choose a suitable connection; governance addresses combinations that the model does not allow.
- Identify the two CI classes and write the intended connection in a sentence.
- Compare that sentence with an existing relationship type and its reverse descriptor.
- Review the suggested relationships for the relevant class.
- Check applicable governance rules before adding the connection.
- Inspect the resulting relationship from both endpoints and confirm that the sentence still holds.
Keep a short modeling decision record when teams disagree about the meaning. Include the class pair, selected type, direction, and an example that explains the choice. That record is working guidance for reviewers, rather than a reason to introduce a new type whenever two teams use different vocabulary.
Check the editing experience and relationship direction
In the CI relationship editor, the CI from which you launch the editor becomes the base CI. Its position as parent or child depends on the relationship selected. Opening the editor from a particular record does not establish that record as the parent.
With Use suggested relationship selected, choose a relationship type before selecting the second CI. Without that option, select the second CI first and then choose a parent or child relationship type. The Downstream relationships list contains connections in which the base CI is the parent; Upstream relationships contains connections in which it is the child.
Starting with Brazil, the older CI relationship editor is being prepared for future deprecation and is hidden on new instances, while remaining supported. Unified Map in the CMDB Workspace store app provides the newer editing experience. Check your instance and release before choosing instructions for the interface you use.
After an edit, inspect the stored connection rather than relying on where a node appears on screen. Confirm both CI identities and the selected type. For the separate maintenance workflow, use the guide to creating, editing, and deleting CI relationships.
Investigate missing connections before changing the model
A relationship can exist without being used by the process you are examining. Tag-based discovery, for example, uses traversal rules to determine which CI relationships participate in that discovery process. Changing a diagram’s appearance and changing those rules are different decisions.
For tag-based discovery relationship configuration, the required role is service_mapping_admin. The path is Service Mapping > Administration > Tag-based Service Traversal Rules. Base System Rule identifies preconfigured rules. Preconfigured relationships cannot be deleted or modified from the Traversal Rules for Application Services table, so distinguish those records from additional relationships before planning a change.
Event Management has another configuration context. Adding a relationship to CMDB Group CI Relations requires evt_mgmt_admin. Under All > Event Management > Administration > CMDB Group CI Relations, the form identifies Base class, Relationship, and Dependent class. Those entries support alert grouping; they are not a substitute for checking the underlying CI connection.
For relationship security, review access controls on CI Relationship [cmdb_rel_ci] together with the editCIRelations operation on the * table. Treat a permissions review as part of diagnosing an editing problem. Do not assume that access to a CI record establishes access to its relationships.
For help planning this work, see ServiceNow implementation.
Validate the dependency before accepting the view
Use a small, known path as an acceptance check. Select components whose relationship the responsible application or infrastructure team can explain. Compare their explanation with the stored endpoints, descriptor, and direction. This makes a disagreement specific enough to resolve.
Be careful with cleanup. Dependent relationships participate in Identification and Reconciliation Engine identification of dependent CIs and should not be directly deleted. Non-dependent relationships have a different source-tracking mechanism in Relationship Sources [sys_rel_source]. Full population of that table is disabled by default; glide.identification_engine.populate_sys_rel_source controls that behavior.
For a proposed non-dependent relationship deletion, examine other discovery sources and how recently the relationship was updated. An empty source history is insufficient evidence of an obsolete dependency when source tracking has not been populated. Agree on the evidence needed for removal before treating a sparse diagram as a cleanup target.
Questions about relationship boundaries and downstream uses
Can endpoint relationship types connect two ordinary CIs?
Implement End Point To, Use End Point To, and Applicative Flow To, together with their reverse descriptors, are reserved for Service Mapping endpoints. The CI relationship editor does not allow those types as ordinary connections between two CIs.
Does a business continuity dependency selection include indirect items?
In Business Continuity Workspace, Based on CMDB dependencies (Level 1) lists directly related items for that selection. From all records provides a separate selection route. Adding items to dependency groups in this workflow requires sn_bcm.planner or sn_bcm.program_manager.
Can the same class and relationship appear in multiple alert grouping entries?
Yes. CMDB Group CI Relations permits the same parent class and relationship in more than one entry. Review the dependent or target class before treating entries with matching first fields as duplicates.
What changes when a relationship page template is copied?
For the CI infrastructure relationships template, Use the original template retains the template reference and receives template updates. Copy template contents allows component property changes but does not receive those automatic template changes. Configuring the page properties requires workspace_admin or ui_builder_admin.