Remove Virtual Switch operation
The Remove Virtual Switch operation updates the configuration of a host network to remove a virtual switch.
The following table describes the elements for this request.
Adapter request elements for the Remove Virtual Switch operation
Element | Definition | Required | |
---|---|---|---|
<operation-type> | Defines the type of the operation: Host | Yes | |
<operation-name> | Defines the name of the operation: Remove_Virtual_Switch | Yes | |
<soap-url> | Specifies the URL for the remote SOAP service running on the VMware VirtualCenter | No | |
<transport> | Specifies the transport protocol for the message | No | |
<user-name> | Specifies the user name that is used for HTTP basic authentication on the VMware Virtual Center | 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> | DNS name of the host on the network from which the virtual switch is to be removed | Yes | |
<vswitch-list> | The list of virtual switches to be removed from the host
name: the name of the virtual switch | Yes |
The following code sample shows a sample adapter request for the Remove Virtual Switch operation.
Sample adapter request for the Remove Virtual Switch operation
<operation-type>Host</operation-type>
<operation-name>Remove_Virtual_Switch</operation-name>
<soap-url></soap-url>
<transport></transport>
<user-name></user-name>
<password></password>
<parameters>
<host-system>xyz.bmc.com</host-system>
<config>
<vswitch-list>
<vswitch>
<name>vSwitch4</name>
</vswitch>
</vswitch-list>
</config>
</parameters>
</vmware-infrastructure-request>
The following code sample shows the response for the sample Remove Virtual Switch operation.
Sample adapter response for the Remove Virtual Switch operation
<metadata>
<status>success</status>
</metadata>
<RemoveVirtualSwitchResponse>
<returnval/>
</RemoveVirtualSwitchResponse>