< Back

Get-VsanView

Sun Jan 19, 2020 7:17 pm

NAME Get-VsanView



SYNOPSIS

This cmdlet retrieves vSAN views that match the specified IDs.





SYNTAX

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





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

-Id <ManagedObjectReference[]>

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.



Required? false

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Server <VIServer[]>

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.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? true



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Zero or more VsanView objects







NOTES









-------------------------- 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 LINKS

Online Version: https://code.vmware.com/doc/preview?id= ... nView.html