PowerCLI Reference

Get-HCXInventoryCompute

Synopsis

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

Syntax

Get-HCXInventoryCompute [[-Name] <String[]>] -Cluster <HCXApplianceCompute[]> [-Server <HcxServer[]>] [<CommonParameters>]

Get-HCXInventoryCompute [[-Name] <String[]>] -ClusterComputeResource [-Server <HcxServer[]>] [<CommonParameters>]

Get-HCXInventoryCompute [[-Name] <String[]>] -DVS <HCXApplianceDVS> [-Server <HcxServer[]>] [<CommonParameters>]

Get-HCXInventoryCompute [[-Name] <String[]>] -Network <HCXNetwork> [-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

NameTypeDescriptionRequired?Pipeline InputDefault Value
NameString[]Specifies the name of the vCenter Server compute.falseFalse
ClusterHCXApplianceCompute[]Specifies the vCenter Server cluster filter.trueTrue (ByValue)
ClusterComputeResourceSwitchParameterIndicates that you want to fetch clusters.trueFalse
DVSHCXApplianceDVSSpecifies the DVS filter.trueTrue (ByValue)
NetworkHCXNetworkSpecifies the HCX networks. These include networks of type Network, DistributedVirtualPortgroup, VirtualWire, and VirtualNetwork.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.HCXApplianceCompute

Notes

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.


Copyright © VMware, Inc. All rights reserved.