Get-HCXInventoryDatastore Command | Vmware PowerCLI Reference

Get-HCXInventoryDatastore

This cmdlet retrieves a list of the vCenter Server datastore. You can use the output of the cmdlet for creating a Compute Profile and an HCX Appliance request.

Syntax

Get-HCXInventoryDatastore
-Compute < HCXApplianceCompute[] >
[-Name < String[] > ]
[-ProgressAction < ActionPreference > ]
[-Server < HcxServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Compute HCXApplianceCompute[] named
  • pipeline
Specifies the vCenter Server compute filter.
optional Name String[] named
Specifies the name of the vCenter Server datastore.
optional ProgressAction ActionPreference named
optional Server HcxServer[] named
Specifies the HCX 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 the Connect-HCXServer cmdlet.

Output

VMware.VimAutomation.Hcx.Types.V1.HCXApplianceDatastore

Examples

Example 1

$myNetwork = Get-HCXNetwork -Name "myNetworkName"
        $myCompute = Get-HCXInventoryCompute -Network $myNetwork
        Get-HCXInventoryDatastore -Compute $myCompute

Retrieves a list of the vCenter Server datastore filtered by compute.

Example 2

$myNetwork = Get-HCXNetwork -Name "myNetworkName"
        $myCompute = Get-HCXInventoryCompute -Network $myNetwork
        Get-HCXInventoryDatastore -Compute $myCompute -Name "myDatastoreName"

Retrieves a list of the vCenter Server datastore filtered by name.

Example 3

$myCluster = Get-HCXInventoryCompute -ClusterComputeResource -Name 'myCluster'
        Get-HCXInventoryDatastore -Compute $myCluster

Retrieves a list of the vCenter Server datastore filtered by compute.

Related Commands

HCXInventoryCompute

This cmdlet retrieves a list of vCenter Server compute resources from the connected HCX server.

HCXInventoryDVS

This cmdlet retrieves a list of the vCenter Server Distributed Virtual Switch (DVS) from the connected HCX server.

HCXInventoryDatastore

This cmdlet retrieves a list of the vCenter Server datastore from the connected HCX server.

HCXInventoryNetwork

This cmdlet retrieves a list of the vCenter Server network from the connected HCX server.