Get-DatastoreCluster
This cmdlet retrieves datastore clusters.
Syntax
[-Datastore
<Datastore[]>]
[-Id <String[]>]
[-Location <VIContainer[]>]
[-Name <String[]>]
[-Server <VIServer[]>]
[-Tag <Tag[]>]
[-Template <Template[]>]
[-VM <VirtualMachine[]>]
[CommonParameters]
[-Id <String[]>]
[-Location <VIContainer[]>]
[-Name <String[]>]
[-Server <VIServer[]>]
[-Tag <Tag[]>]
[-Template <Template[]>]
[-VM <VirtualMachine[]>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
optional |
|
Datastore[] | named |
|
Filters the datastore clusters by the datastores located in them. | optional |
|
String[] | named |
|
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. | optional |
|
VIContainer[] | named |
|
Specifies the datacenters and folders from which you want to retrieve datastore clusters. | optional |
|
String[] | named |
|
Specifies the names of the datastore clusters you want to retrieve. | optional |
|
VIServer[] | named |
|
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. | optional |
|
Tag[] | named |
|
Returns only the datastore clusters that are associated with any of the specified tags. | optional |
|
Template[] | named |
|
Filters the datastore clusters by the virtual machine templates located in them. | optional |
|
VirtualMachine[] | named |
|
Filters the datastore clusters by the virtual machines located in them. |
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
DatastoreClusterRelatedObjectBase[] | named |
|
Specifies objects to retrieve one or more DatastoreCluster objects that are related to them. This parameter accepts OMResource objects. |
Output
VMware.VimAutomation.ViCore.Types.V1.DatastoreManagement.DatastoreCluster
Examples
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 Commands
Datastore
This cmdlet retrieves the datastores available on a vCenter Server system.
This cmdlet moves datastores from one location to another.
This cmdlet modifies the properties of the specified datastore.
This cmdlet removes the specified datastores from their locations.
This cmdlet creates a new datastore.
DatastoreCluster
This cmdlet retrieves datastore clusters.
This cmdlet modifies the configuration of the specified datastore cluster.
This cmdlet deletes the specified datastore clusters.
This cmdlet creates a new datastore cluster.
DatastoreItem
This cmdlet copies items between datastores and between a datastore and a local file system provider.