Get-VsanView Command | Vmware PowerCLI Reference


This cmdlet retrieves vSAN views that match the specified IDs. The string value of the ID is in format &#60type&#62-&#60value&#62 as it is in the PowerShell toolkit objects.


[-Id < ManagedObjectReference[] > ]
[-Server < VIServer[] > ]


Required Parameter Name Type Position Features Description
optional Id ManagedObjectReference[] named
Specifies the ManagedObjectReference for which you want to retrieve the view. This parameter also accepts strings by silently converting them to ManagedObjectReference by using ArgumentTransformationAttribute. If not specified, all vSAN view objects available on the server are returned.
optional Server VIServer[] named
  • wildcards
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.




Example 1

Get-VsanView -Server "MyServer"

Retrieves all singleton vSAN view objects from the "MyServer" connected server.

Example 2

Get-VsanView -Id "ManagedObjectId"

Retrieves the view object of a vSAN managed object with ID "ManagedObjectId".

Related Commands


This cmdlet retrieves vSAN views that match the specified IDs.