PowerCLI Reference

Get-VsanView

Synopsis

This cmdlet retrieves vSAN views that match the specified IDs.

Syntax

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.

Parameters

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

Notes

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


Copyright © VMware, Inc. All rights reserved.