PowerCLI Reference



This cmdlet retrieves vSAN views that match the specified IDs.


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

Related Commands

Online Version

Detailed Description

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.


NameTypeDescriptionRequired?Pipeline InputDefault Value
IdManagedObjectReference[]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.falseFalse
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.falseFalse

Return Type

Zero or more VsanView objects



-------------------------- 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".

Copyright © VMware, Inc. All rights reserved.