< Back

Get-DatastoreCluster

Sun Jan 19, 2020 6:49 pm

NAME Get-DatastoreCluster



SYNOPSIS

This cmdlet retrieves datastore clusters.





SYNTAX

Get-DatastoreCluster [[-Name] <String[]>] [-Datastore <Datastore[]>] [-Id <String[]>] [-Location <VIContainer[]>]

[-Server <VIServer[]>] [-Tag <Tag[]>] [-Template <Template[]>] [-VM <VirtualMachine[]>] [<CommonParameters>]



Get-DatastoreCluster [-RelatedObject] <DatastoreClusterRelatedObjectBase[]> [<CommonParameters>]





DESCRIPTION

This cmdlet retrieves datastore clusters.





PARAMETERS

-Datastore <Datastore[]>

Filters the datastore clusters by the datastores located in them.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Id <String[]>

Specifies the IDs of the datastore clusters you want to retrieve.



Note: When a list of values is specified for the Id parameter, the returned objects would have an ID that

matches exactly one of the string values in that list.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? true



-Location <VIContainer[]>

Specifies the datacenters and folders from which you want to retrieve datastore clusters.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Name <String[]>

Specifies the names of the datastore clusters you want to retrieve.



Required? false

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? true



-RelatedObject <DatastoreClusterRelatedObjectBase[]>

Specifies objects to retrieve one or more DatastoreCluster objects that are related to them. This parameter

accepts OMResource objects.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Server <VIServer[]>

Specifies the vCenter Server systems on which you want to run the cmdlet. If no 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.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? true



-Tag <Tag[]>

Returns only the datastore clusters that are associated with any of the specified tags.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Template <Template[]>

Filters the datastore clusters by the virtual machine templates located in them.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? true



-VM <VirtualMachine[]>

Filters the datastore clusters by the virtual machines located in them.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByValue)

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 DatastoreCluster objects







NOTES









-------------------------- Example 1 --------------------------



Get-DatastoreCluster



Retrieves all datastore clusters.

-------------------------- Example 2 --------------------------



Get-DatastoreCluster -Name DatastoreCluster1



Retrieves a datastore cluster by name.

-------------------------- Example 3 --------------------------



Get-VM -Name WebServerVM | Get-DatastoreCluster



Retrieves datastore clusters through filtering by virtual machine.



RELATED LINKS

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

New-DatastoreCluster

Remove-DatastoreCluster

Set-DatastoreCluster