Get-VsanView Command | Vmware PowerCLI Reference

Get-VsanView

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

Syntax

Get-VsanView
[-Id < ManagedObjectReference[] > ]
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[CommonParameters]

Parameters

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 ProgressAction ActionPreference named
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.

Output

VMware.Vsan.Views.IVsanView

Examples

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

VsanView

This cmdlet retrieves vSAN views that match the specified IDs.