get_resource_relationships
Retrieve parent and child relationships for any VMware Aria resource to trace inventory links across VMs, hosts, datastores, and folders. Walk up or down the hierarchy using returned IDs and pagination offsets.
Instructions
[READ] Navigate the inventory: resources related to one resource (VM -> host, datastore, folder; host -> VMs, datacenter). Each row: id, name, kind, adapter_kind, direction (parent, child, both, other). Call again on a returned id to walk further up or down.
Returns a paginated envelope with next_offset — pass it back as offset until null. With ALL, direction is null when the PARENT/CHILD labels could not be read, and direction_note says why. A failed or unrecognised read is an error, never an empty list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size, 1-500 (default 100). Out-of-range is rejected. | |
| offset | No | Rows to skip; pass the previous response's next_offset. | |
| target | No | Aria target name from config; default when omitted. | |
| resource_id | Yes | Resource UUID (from list_resources). | |
| relationship_type | No | Exactly ALL, PARENT or CHILD (upper case). Default ALL; ANCESTOR/DESCENDANT are rejected. | ALL |