PowerCLI Reference

Get-HCXApplianceDatastore

Synopsis

This cmdlet retrieves a list of the vCenter Server datastore.

Syntax

Get-HCXApplianceDatastore [[-Name] <String[]>] -Compute <HCXApplianceCompute> [-Server <HcxServer[]>] [<CommonParameters>]

Related Commands

Detailed Description

This cmdlet retrieves a list of the vCenter Server datastore. You can use the output of the cmdlet for creating a new HCX (Hybrid Cloud Extension) Appliance request.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
NameString[]Specifies the name of the vCenter Server datastore.falseFalse
ComputeHCXApplianceComputeSpecifies the vCenter Server compute filter.trueTrue (ByValue)
ServerHcxServer[]Specifies the HCX Server systems 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 the Connect-HCXServer cmdlet.falseFalse

Return Type

VMware.VimAutomation.Hcx.Types.V1.HCXApplianceDatastore

Notes

Examples

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

PS C:\> $myNetwork = Get-HCXNetwork -Name "myNetworkName"
        $myCompute = Get-HCXApplianceCompute -Network $myNetwork
        Get-HCXApplianceDatastore -Compute $myCompute

Retrieves a list of the vCenter Server datastore by compute.

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

PS C:\> $myNetwork = Get-HCXNetwork -Name "myNetworkName"
        $myCompute = Get-HCXApplianceCompute -Network $myNetwork
        Get-HCXApplianceDatastore -Compute $myCompute -Name "myDatastoreName"

Retrieves a list of the vCenter Server datastore by name.


Copyright © VMware, Inc. All rights reserved.