Get-CINetworkAdapter Command | Vmware PowerCLI Reference

Get-CINetworkAdapter

This cmdlet retrieves the virtual network adapters available on a vCloud Director server.

Syntax

Get-CINetworkAdapter
-VAppNetwork < CIVAppNetwork[] >
[-Primary < Boolean > ]
[-Server < CIServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VAppNetwork CIVAppNetwork[] named
  • pipeline
Specifies vApp networks to retrieve the virtual network adapters that are connected to them.
optional Primary Boolean named
Indicates that you want to retrieve only primary virtual network adapters.
optional Server CIServer[] named
Specifies the cloud servers 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 Connect-CIServer.
Get-CINetworkAdapter
[-Primary < Boolean > ]
[-Server < CIServer[] > ]
[-VM < CIVM[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
optional Primary Boolean named
Indicates that you want to retrieve only primary virtual network adapters.
optional Server CIServer[] named
Specifies the cloud servers 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 Connect-CIServer.
optional VM CIVM[] named
  • pipeline
Specifies the virtual machines whose virtual network adapters you want to retrieve.

Output

VMware.VimAutomation.Cloud.Types.V1.CINetworkAdapter

Examples

Example 1

Get-CIVM -Name 'MyVM1' | Get-CINetworkAdapter

Retrieves all virtual network adapters for the MyVM1 virtual machine.

Example 2

Get-CIVappNetwork -Name 'MyVAppNetwork1' -VApp 'MyVapp1' | Get-CINetworkAdapter

Retrieves all virtual network adapters for the specified vApp network.

Example 3

Get-VApp -Name 'MyVapp1' | Get-CIVM | Get-CINetworkAdapter -Primary

Retrieves the primary virtual network adapters for all virtual machines in the specified vApp.

Related Commands

CINetworkAdapter

This cmdlet retrieves the virtual network adapters available on a vCloud Director server.

This cmdlet modifies the configuration of a virtual network adapter of a virtual machine on a vCloud Director server.