Get-CIDatastore Command | Vmware PowerCLI Reference

Get-CIDatastore

This cmdlet retrieves the datastores available on a cloud server. To specify a server different from the default one, use the Server parameter. Note: This cmdlet is only available to Provider Administrators.

Syntax

Get-CIDatastore
-Id < String[] >
[-ProgressAction < ActionPreference > ]
[-Server < CIServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Id String[] named
Specifies the IDs of the datastores that 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 ProgressAction ActionPreference named
optional Server CIServer[] named
Specifies the cloud servers 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-CIServer.
Get-CIDatastore
[-Name < String[] > ]
[-ProgressAction < ActionPreference > ]
[-ProviderVdc < ProviderVdc[] > ]
[-Server < CIServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional Name String[] named
Specifies the names for the datastores that you want to retrieve.
optional ProgressAction ActionPreference named
optional ProviderVdc ProviderVdc[] named
  • pipeline
Specifies the provider vDC for which you want to retrieve datastores.
optional Server CIServer[] named
Specifies the cloud servers 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-CIServer.

Output

VMware.VimAutomation.Cloud.Types.V1.CIDatastore

Examples

Example 1

Get-CIDatastore -Name "MyDatastore*"

Retrieves all datastores with names that start with "MyDatastore" from all available provider vDCs.

Example 2

Get-CIDatastore -Name *datastore* -ProviderVDC "MyProviderVDC1", "MyProviderVDC2"

Retrieves all datastores with names that contain "datastore" from multiple provider vDCs.

Related Commands

CIDatastore

This cmdlet adds one or more datastores to a provider virtual data center (vDC).

This cmdlet retrieves the datastores available on a cloud server.