Remove Virtual NIC operation


The Remove Virtual NIC operation updates the configuration of a host network to remove a virtual NIC.

The following table describes the elements for this request.

Adapter request elements for the Remove Virtual NIC operation

Element

Definition

Required

<operation-type>

Defines the type of the operation: Host

Yes

<operation-name>

Defines the name of the operation: Remove_Virtual_NIC

Yes

<soap-url>

Specifies the URL for the remote SOAP service running on the VMware VirtualCenter

If the <soap-url> element is not specified, the request uses the VirtualCenter Server details specified in the adapter configuration.

Default format for HTTPS: https://<hostName>:<port>/sdk/vim

Default format for HTTP: http://<hostName>:<port>/sdk/vim

Warning

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

If the <transport> element is not provided, the request uses the VirtualCenter Server details specified in the adapter configuration.

Valid values: https-rpc (default), http-rpc

Warning

Note

If the value of the <transport> element is https-rpc, you must install the security certificate for the VMware Virtual Center to 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

If no user name is specified, the request is executed with the user name that is specified in the configuration.

No

<password>

Specifies the password corresponding to <user-name>

Conditional; required if <user-name> is specified

<parameters>

Contains the element required to execute the operation

Yes

<host-system>

DNS name of the host on the network from which the virtual NIC is to be removed

Valid values: dns name

Yes

<vnic-list>

The list of virtual network adapters to be removed from the host

Format:

<vnic-list>
 <vnic>
  <portgroup>
  </portgroup>
 <vnic>
<vnic-list>

portgroup: The name of the port group for the virtual network adapter

Yes

The following code sample shows a sample adapter request for the Remove Virtual NIC operation.

Sample adapter request for the Remove Virtual NIC operation

<vmware-infrastructure-request>
    <operation-type>Host</operation-type>
   <operation-name>Remove_Virtual_NIC</operation-name>
   <soap-url></soap-url>                    
   <transport></transport>
    <username></username>
    <password></password>
    <parameters>
       <host-system>xyz.bmc.com</host-system>
        <config>
        <vnic-list>
           <vnic>
               <portgroup>Virtual Machine Network 2</portgroup>
           </vnic>
        </vnic-list>
        </config>
    </parameters>
</vmware-infrastructure-request>

The following code sample shows the response for the sample Remove Virtual NIC operation.

Sample adapter response for the Remove Virtual NIC operation

<vmware-infrastructure-response>
    <metadata>
        <status>success</status>
    </metadata>
    <RemoveVirtualNICResponse>
        <returnval/>
    </RemoveVirtualNICResponse>
</vmware-infrastructure-response>

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

TrueSight Orchestration Content 21.3