Update Virtual NIC operation
The Update Virtual NIC operation updates the virtual network interface card (NIC) on a host network.
The following table describes the elements for this request:
Adapter request elements for the Update Virtual NIC operation
Element | Definition | Required |
|---|---|---|
<operation-type> | Specifies the type of the operation: Host | No |
<operation-name> | Specifies the name of the operation: Update_Virtual_NIC | Yes |
<soap-url> | Specifies the URL for the remote SOAP service running on the VMware VirtualCenter Note: If you want to use an HTTP value, you might need to change the configuration of the VMware Infrastructure application. | No |
<transport> | Specifies the transport protocol for the message Note: If the value of the <transport> element is https-rpc, you must install the security certificate for the VMware VirtualCenter in the keystore of the peer on which the adapter is enabled. | No |
<user-name> | Specifies the user name that is used for HTTP basic authentication on the VMware Virtual Center application | No |
<password> | Specifies the password corresponding to <user-name> | Conditional; required if <user-name> is specified |
<parameters> | Contains the elements required to execute the operation | Yes |
<host-system> | Specifies the domain name server (DNS) name of the host on the network in which the virtual NIC is to be updated | Yes |
<device> | Specifies the name of the NIC to update | Yes |
<nic> | Contains the specification for the host virtual NIC | Yes |
The following code sample shows a sample adapter request for the Update Virtual NIC operation:
Sample adapter request for the Update Virtual NIC operation
<operation-type>Host</operation-type>
<operation-name>Update_Virtual_NIC</operation-name>
<parameters>
<host-system>10.128.249.70</host-system>
<device>vmk2</device>
<nic>
<ip>
<dhcp>false</dhcp>
<ip-address>10.128.249.91</ip-address>
<subnet-mask>255.255.254.0</subnet-mask>
</ip>
<mac />
<portgroup>VMkernelTest</portgroup>
<mtu>1300</mtu>
</nic>
</parameters>
</vmware-infrastructure-request>
The following code sample shows the response for the sample Update Virtual NIC operation:
Sample adapter response for the Update Virtual NIC operation
<execution-duration>3034</execution-duration>
<status>success</status>
<messageBase64></messageBase64>
<data>
<vmware-infrastructure-response>
<metadata>
<status>success</status>
</metadata>
<UpdateVirtualNicResponse>
</UpdateVirtualNicResponse>
</vmware-infrastructure-response>
</data>
</adapter-response>