# Managed Object - HostVirtualNicManager(vim.host.VirtualNicManager)

Property of
  HostConfigManager
Extends
  ExtensibleManagedObject
See also
  HostVirtualNicManagerInfo, VirtualNicManagerNetConfig
Since
  vSphere API 4.0

## Managed Object Description

The VirtualNicManager managed object describes the special Virtual NIC configuration of the host.

Properties

Name | Type | Description
--- | --- | ---
info | HostVirtualNicManagerInfo | Network configuration.
Properties inherited from ExtensibleManagedObject
availableField, value

Methods

Methods defined in this Managed Object
DeselectVnicForNicType, QueryNetConfig, SelectVnicForNicType
Methods inherited from ExtensibleManagedObject
setCustomValue

# DeselectVnicForNicType(deselectVnic)

Deselect the VirtualNic to be a special type.

Required Privileges
  Host.Config.Network

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the HostVirtualNicManager used to make the method call.
nicType P | xsd:string | The type of VirtualNic that would be deselected Since vSphere API 4.0
device P | xsd:string | The device that uniquely identifies the VirtualNic. Since vSphere API 4.0

P Required privilege - see tooltip for details

Return Value

Type | Description
--- | ---
None

Faults

Type | Description
--- | ---
HostConfigFault | Thrown for any other failure.
InvalidArgument | Thrown if nicType is invalid, device represents a nonexistent or invalid VirtualNic, or the VirtualNic is not selected
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:sms="urn:sms" name="DeselectVnicForNicType" type="sms:DeselectVnicForNicTypeRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:sms="urn:sms" name="DeselectVnicForNicTypeResponse"> <complexType/> </element>

# QueryNetConfig(queryNetConfig)

Get the NetConfig for the specified nicType

Required Privileges
  System.Read

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the HostVirtualNicManager used to make the method call.
nicType P | xsd:string | The NicType Since vSphere API 4.0

P Required privilege: nicType

Return Value

Type | Description
--- | ---
VirtualNicManagerNetConfig |

Faults

Type | Description
--- | ---
HostConfigFault | Thrown for any other failure.
InvalidArgument | Thrown if nicType is invalid
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:sms="urn:sms" name="QueryNetConfig" type="sms:QueryNetConfigRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:sms="urn:sms" name="QueryNetConfigResponse"> <complexType> <sequence> <element name="returnval" type="sms:VirtualNicManagerNetConfig" minOccurs="0"/> </sequence> </complexType> </element>

# SelectVnicForNicType(selectVnic)

Select the NicType of the VirtualNic. Selecting a device automatically deselects the previous selection if NetConfig#multiSelectAllowed is false for the specified nicType. Else, the device is added to the list of selected nics.

Required Privileges
  Host.Config.Network

Parameters

Name | Type | Description
--- | --- | ---
_this | ManagedObjectReference | A reference to the HostVirtualNicManager used to make the method call.
nicType P | xsd:string | The type of VirtualNic that would be selected Since vSphere API 4.0
device P | xsd:string | The device that uniquely identifies the VirtualNic. Since vSphere API 4.0

P Required privilege - see tooltip for details

Return Value

Type | Description
--- | ---
None

Faults

Type | Description
--- | ---
HostConfigFault | Thrown for any other failure.
InvalidArgument | Thrown if nicType is invalid, or device represents a nonexistent or invalid VirtualNic
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error.

Events

Type
None

Show WSDL type definition
<element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:sms="urn:sms" name="SelectVnicForNicType" type="sms:SelectVnicForNicTypeRequestType"/> <element xmlns="http://www.w3.org/2001/XMLSchema" xmlns:sms="urn:sms" name="SelectVnicForNicTypeResponse"> <complexType/> </element>