Syntax
Get-VsanObject [[-Cluster] <Cluster[]>] [-Type <VsanObjectType[]>] [-VM <VirtualMachine[]>] [-VsanDisk <VsanDisk[]>] [-Server <VIServer[]>] [<CommonParameters>]Related Commands
Online VersionDetailed Description
This cmdlet retrieves vSAN objects based on the specified filters.Parameters
Return Type
Zero or more vSAN objectsNotes
Examples
-------------------------- Example 1 --------------------------
Get-VsanObject -Cluster $clusters
Retrieves information of all vSAN objects from the specified clusters.
-------------------------- Example 2 --------------------------
Get-VsanObject -Cluster $clusters -VM $vms
Retrieves information of the vSAN objects in the specified clusters. The vSAN objects should associate with the specified virtual machines.
-------------------------- Example 3 --------------------------
Get-VsanObject -Cluster $clusters -VsanDisk $disks
Retrieves information of the vSAN objects in the specified clusters. The vSAN objects should reside in the specified vSAN disks.
-------------------------- Example 4 --------------------------
Get-VsanObject -Cluster $clusters -VM $vms -type VDisk
Retrieves information of the VMDK type vSAN objects in the specified clusters. The vSAN objects should associate with the specified virtual machines.