Syntax
Get-HCXInventoryDatastore [[-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 Compute Profile and an HCX Appliance request.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Name | String[] | Specifies the name of the vCenter Server datastore. | false | False | |
Compute | HCXApplianceCompute[] | Specifies the vCenter Server compute filter. | true | True (ByValue) | |
Server | HcxServer[] | 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. | false | False |
Return Type
VMware.VimAutomation.Hcx.Types.V1.HCXApplianceDatastoreNotes
Examples
-------------------------- Example 1 --------------------------
PS C:\> $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 --------------------------
PS C:\> $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 --------------------------
PS C:\> $myCluster = Get-HCXInventoryCompute -ClusterComputeResource -Name 'myCluster' Get-HCXInventoryDatastore -Compute $myCluster
Retrieves a list of the vCenter Server datastore filtered by compute.