sn_relationships
Discover how ServiceNow CIs are connected by traversing CMDB relationship graphs in either direction. Identify impacted systems and map dependencies at configurable depth.
Instructions
Traverse CMDB CI relationships (graph walk). Supports upstream, downstream, or both directions with configurable depth. Use for impact analysis and dependency mapping.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Filter by relationship type name (substring match) | |
| class | No | Filter displayed CIs by class name (substring match) | |
| depth | No | How many levels deep to traverse (1-5, default from SN_REL_DEPTH or 3) | |
| impact | No | Impact analysis mode — walks upstream only | |
| sys_id | No | Sys_id of the CI to start from (alternative to ci_name) | |
| ci_name | No | Name of the CI to start from (resolved via cmdb_ci name field) | |
| direction | No | Traversal direction (default: both) |