Provider administrators with advanced knowledge and understanding of .NET Framework, vSphere PowerCLI, PowerShell scripting, and vSphere and vCloud APIs can retrieve vSphere PowerCLI views from vCloud
Director PowerCLI views with the Get-CIView and Get-View cmdlets.
With vSphere PowerCLI views, you can develop .NET applications for creating, customizing, or managing vSphere inventory objects.
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 SupportedvSphere PowerCLI Views That You Can Retrieve from vCloud
Director PowerCLI Views
vCloud
Director PowerCLI View Object
|
Retrieved vSphere PowerCLI View Object
|
Sample Script for Retrieving vSphere PowerCLI View Objects from Cloud Resources
|
VMWExternalNetwork
|
DistributedVirtualPortGroup
|
Get-ExternalNetwork -Name 'MyExternalNetwork' | Get-CIView | Get-View
|
VLanPool
|
DistributedVirtualSwitch
|
Get-NetworkPool -Name 'MyVlanPool' | Get-CIView | Get-View
|
FencePool
|
DistributedVirtualSwitch
|
Get-NetworkPool -Name 'MyFencePool' | Get-CIView | Get-View
|
VimServer
|
ServiceInstance
|
$providerVdcView = Get-ProviderVdc -Name 'MyProviderVdc' | Get-CIView
Get-CIView -Id $providerVdcView.VimServer[0].Href | Get-View
|
VMWProviderVdcResourcePool
|
ResourcePool
|
$providerVdcView = Get-ProviderVdc -Name 'MyProviderVdc' | Get-CIView
$resourcePoolSet = $providerVdcView.GetResourcePools()
$resourcePoolSet.VMWProviderVdcResourcePool | Get-View
|
Datastore
|
Datastore
|
Get-CIDatastore -Name 'MyDatastore' -ProviderVdc 'MyProviderVdc' | Get-CIView | Get-View
|
CIVM
|
VirtualMachine
|
Get-CIVM -Name 'MyVM' | Get-CIView | Get-View
|