Using raw API objects with ExtensionData or Get-View
PowerCLI makes it easy to use the VMware vSphere application programming interface (API). There are two ways to do this. The first one is by using the ExtensionData
property that most of the PowerCLI objects have. The ExtensionData
property is a direct link to the vSphere API object related to the PowerCLI object. The second way is by using the Get-View
cmdlet to retrieve the vSphere API object related to a PowerCLI object. Both these ways will be discussed in the following sections.
Using the ExtensionData property
Most PowerCLI objects, such as VirtualMachineImpl
and VMHostImpl
, have a property named ExtensionData
. This property is a reference to a view of a VMware vSphere object as described ...
Get Learning PowerCLI - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.