Here is a quick script I wrote to pull the relationship’s for an object by name from the suite-api… which is exported to a CSV file.

To run the script, provide the vRops address, the pre-stored credentials and the name of the resource you wish to search…

To create the credentials file run the following command.

 

And here is the script

 

Example Output

Name Type
ESX-INF-SSD1 Datastore
WINSRVs Function
192.168.88.130 HostSystem
Product Licensing Licensing
PoweredOn:vc.vMan.ch VM Entity Status
PoweredOn:all VM Entity Status
SERVER VMFolder