get_cloud_diagram_resource_relationships
Retrieve the upstream and downstream connections for a cloud resource in a diagram, including edges and group membership with hop distance.
Instructions
Use this when the user wants to understand how a specific resource in a cloud infrastructure diagram is connected to other resources — its upstream/downstream edges and group membership. Returns the anchor resource plus related resources with their relation type and hop distance. Requires the diagram layer ID and the resource ID. Do NOT use this for cost analysis (use get_cloud_diagram_cost_snapshot or run_query).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Which relationship kinds to include. Possible values: edges, group_members, both (defaults to edges). | |
| depth | No | How far to traverse. Possible values: direct, transitive (defaults to direct). | |
| layerId | Yes | The diagram layer (statussheet) ID that contains the resource. | |
| direction | No | Relationship direction to traverse. Possible values: downstream, upstream, both (defaults to both). | |
| resourceId | Yes | The ID of the resource (node, element, or group) to map relationships for. |