Provider administrators can use the RelatedObject parameter of PowerCLI cmdlets to retrieve vSphere inventory objects from vCloud Director objects. Passing the retrieved objects to the cmdlets of the VMware.VimAutomation.Core and VMware.VimAutomation.VDS modules, extends administration options.

Important

Use of the VMware.VimAutomation.Core and VMware.VimAutomation.VDS modules to modify the configuration of objects that are managed by vCloud Director might result in unpredictable behavior of the cloud environment.

List of Supported vSphere Inventory Objects You Can Retrieve from Cloud Objects

Cloud Object

Retrieved vSphere Inventory Object

Sample Script for Retrieving the vSphere Inventory Object

ProviderVdc

Datastore

Get-ProviderVdc -Name 'MyProviderVdc' | Get-Datastore

CIVM

VirtualMachine

Get-CIVM -Name 'MyCloudVM' | Get-VM 

NetworkPool

VDSwitch

Get-NetworkPool -Name 'MyNetworkPool' | Get-VDSwitch

NetworkPool

VDPortgroup

Get-NetworkPool -Name 'MyNetworkPool' | Get-VDPortGroup

ExternalNetwork

VDPortgroup

Get-ExternalNetwork -Name 'MyExternalNetwork' | Get-VDPortGroup