Get-HCXNetwork
This cmdlet retrieves a list of HCX networks. If the HCXSite is not passed as input, the source site networks are listed. You can create new HCX migration, replication, network extension, and appliance requests by using the output of the cmdlet.
Syntax
[-Name <String[]>]
[-Server <HcxServer[]>]
[-Site <HCXSite[]>]
[-Type <NetworkType>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
optional |
|
String[] | named |
|
{{ Fill DVSName Description }} | optional |
|
String[] | named |
|
Specifies the name of the HCX network. | optional |
|
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. | optional |
|
HCXSite[] | named |
|
Specifies the HCX site for which you want to list the networks. If this parameter is not specified, the default one is selected from the source site. | optional |
|
NetworkType | named |
|
Specifies the type of the HCX network. The valid values are Network, DistributedVirtualPortgroup, VirtualWire, NsxtSegment, OpaqueNetwork, OrgVdcNetwork and VirtualNetwork. |
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
String[] | named |
|
Specifies the Uid of the HCX network. Note: When a list of values is specified for the Uid parameter, the returned objects have a Uid that matches exactly one of the string values in the list. | optional |
|
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. |
[-Appliance <HCXAppliance>]
[-DVSName <String[]>]
[-Name <String[]>]
[-Server <HcxServer[]>]
[-Site <HCXSite[]>]
[-Type <NetworkType>]
[CommonParameters]
Parameters
Required | Parameter Name | Type | Position | Features | Description |
---|---|---|---|---|---|
required |
|
SwitchParameter | named |
|
{{ Fill ForExtension Description }} | optional |
|
HCXAppliance | named |
|
Specifies the L2Concentrator appliance to filter networks. | optional |
|
String[] | named |
|
{{ Fill DVSName Description }} | optional |
|
String[] | named |
|
Specifies the name of the HCX network. | optional |
|
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. | optional |
|
HCXSite[] | named |
|
Specifies the HCX site for which you want to list the networks. If this parameter is not specified, the default one is selected from the source site. | optional |
|
NetworkType | named |
|
Specifies the type of the HCX network. The valid values are Network, DistributedVirtualPortgroup, VirtualWire, NsxtSegment, OpaqueNetwork, OrgVdcNetwork and VirtualNetwork. |
Output
VMware.VimAutomation.Hcx.Types.V1.HCXNetwork
Examples
Example 1
Retrieves the available HCX network at the source site.
Example 2
Retrieves the HCX network by name at the source site.
Example 3
Retrieves the HCX network by type at the source site.
Example 4
Retrieves the HCX network by destination site.
Example 5
Retrieves the HCX network by L2Concentrator.
Example 6
Retrieves the HCX network by Uid.
Example 7
Retrieves the HCX network by type NsxtSegment present in Nsxt sites.
Example 8
Retrieves the HCX network by L2Concentrator and filtered by DvsName.
Related Commands
HCXNetwork
HCXNetworkBacking
HCXNetworkExtension
HCXNetworkMapping