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

[-Name  <String[]>]
[-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
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 given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-CIServer.

    -Id  <String[]>
    [-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.
    optional
    Server
    CIServer[] named Specifies the cloud servers 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-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

    Feedback

    Was this page helpful?