Syntax
Get-HCXInventoryCompute [[-Name] <String[]>] -Cluster <HCXApplianceCompute[]> [-Server <HcxServer[]>] [<CommonParameters>]Related Commands
Detailed Description
This cmdlet retrieves a list of vCenter Server compute resources. You can use the output of the cmdlet for creating ? 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 compute. | false | False | |
Cluster | HCXApplianceCompute[] | Specifies the vCenter Server cluster filter. | true | True (ByValue) | |
ClusterComputeResource | SwitchParameter | Indicates that you want to fetch clusters. | true | False | |
DVS | HCXApplianceDVS | Specifies the DVS filter. | true | True (ByValue) | |
Network | HCXNetwork | Specifies the HCX networks. These include networks of type Network, DistributedVirtualPortgroup, VirtualWire, and VirtualNetwork. | 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.HCXApplianceComputeNotes
Examples
-------------------------- Example 1 --------------------------
PS C:\> $myNetwork = Get-HCXNetwork -Name "myName" Get-HCXInventoryCompute -Network $myNetwork
Retrieves a list of vCenter Server compute resources filtered by network.
-------------------------- Example 2 --------------------------
PS C:\> $myDvs = Get-HCXInventoryDVS -Name "myDvs" Get-HCXInventoryCompute -DVS $myDvs
Retrieves ? list of vCenter Server compute resources filtered by DVS (Distributed Virtual Switch).
-------------------------- Example 3 --------------------------
PS C:\> $myDvs = Get-HCXInventoryDVS -Name "myDvs" Get-HCXInventoryCompute -DVS $myDvs -Name "myName"
Retrieves a list of vCenter Server compute resources filtered by name.
-------------------------- Example 4 --------------------------
PS C:\> Get-HCXInventoryCompute -ClusterComputeResource
Retrieves a list of vCenter Server ClusterComputeResource.
-------------------------- Example 5 --------------------------
PS C:\> $myCluster = Get-HCXInventoryCompute -ClusterComputeResource Get-HCXInventoryCompute -Cluster $myCluster
Retrieves a list of vCenter Server compute resources filtered by cluster.