Remove Port Group operation
The Remove Port Group operation updates the configuration of a host network to remove a port group.
The following table describes the elements for this request.
Adapter request elements for the Remove Port Group operation
Element | Definition | Required | |
|---|---|---|---|
<operation-type> | Defines the type of the operation: Host | Yes | |
<operation-name> | Defines the name of the operation: Remove_Port_Group | 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 deleted | Yes | |
<portgroup-list> | Contains the list of port groups to be removed on the host
name: Name of the port group | Yes |
The following figure shows a sample adapter request for the Remove Port Group operation.
Sample adapter request for the Remove Port Group operation
<operation-type>Host</operation-type>
<operation-name>Remove_Port_Group</operation-name>
<soap-url></soap-url>
<transport></transport>
<username></username>
<password></password>
<parameters>
<host-system>xyz.bmc.com</host-system>
<config>
<portgroup-list>
<portgroup>
<spec>
<name>VM Network 2</name>
</spec>
</portgroup>
</portgroup-list>
</config>
</parameters>
</vmware-infrastructure-request>
The following figure shows the response for the sample Remove Port Group operation.
Sample adapter response for the Remove Port Group operation
<metadata>
<status>success</status>
</metadata>
<RemovePortGroupResponse>
<returnval/>
</RemovePortGroupResponse>
<vmware-infrastructure-response>