# Get-RASVCenterDatastores

## NAME

Get-RASVCenterDatastores

## SYNOPSIS

The cmdlet returns a list of VCenter Datastores.

## SYNTAX

**Get-RASVCenterDatastores** \[[ProviderId](#providerid-string)] *(uint)* \[*(*[*CommonParameters*](#CommonParameters)*)*]

**Get-RASVCenterDatastores** \[[TemplateId](#templateid-string)] *(uint)* \[-[TemplateObjType](#TemplateObjType)] {RDSTemplate | VDITemplate | AVDTemplate} \[*(*[*CommonParameters*](#CommonParameters)*)*]

## DESCRIPTION

The cmdlet returns a list of VCenter Datastores.

## PARAMETERS

## ProviderId (uint)

Provider ID from which to retrieve the VCenter Datastores.

```
        Required?                    true

        Position?                    0

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## TemplateId (uint)

Template ID from which to retrieve the VCenter Datastores.

```
        Required?                    true

        Position?                    0

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## TemplateObjType

([TemplateObjType](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/templateobjtype)) Template Type from which to retrieve the VCenter Datastores.

Supported values: RDSTemplate, VDITemplate.

Possible values: RDSTemplate, VDITemplate, AVDTemplate

```
        Required?                    true

        Position?                    1

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

(CommonParameters)

```
        This cmdlet supports the common parameters: Verbose, Debug,

        ErrorAction, ErrorVariable, WarningAction, WarningVariable,

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

        about_CommonParameters documentation. 
```

## INPUTS

-none-

## OUTPUTS

[VCenterDatastore](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/vcenterdatastore)

## EXAMPLES

**---------- EXAMPLE 1 ----------**

Get-RASVCenterDatastores -ProviderId 1

Retrieves a list of Datastores that are available to the specified Provider.\
\&#xNAN;**---------- EXAMPLE 2 ----------**

Get-RASVCenterDatastores -TemplateId 2 -TemplateType RDSTemplate

Retrieves a list of Datastores that are available to the specified Template.

## RELATED LINKS

-none-
