Remove Datastore operation
The Remove Datastore operation enables you to remove a datastore from a host system.
The following table describes the elements for the adapter request.
Adapter request elements for the Remove Datastore operation
Element | Definition | Required |
---|---|---|
<operation-type> | Defines the type of operation: Host | Yes |
<operation-name> | Defines the name of operation: Remove_Datastore | 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 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 | 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 DNS name of the host from which you want to remove the datastore | Yes |
<datastore> | Specifies the datastore that you want to remove | Yes |
The following code sample shows the sample adapter request for the Remove Datastore operation.
Sample adapter request for the Remove Datastore operation
<operation-type>Host</operation-type>
<operation-name>Remove_Datastore</operation-name>
<soap-url></soap-url>
<transport></transport>
<user-name></user-name>
<password></password>
<parameters>
<host-system>rba-dev15.bmc.com</host-system>
<datastore>NetAppNASStorage1</datastore>
</parameters>
</vmware-infrastructure-request>
The following code sample shows the response for the sample Remove Datastore operation.
Sample adapter response for the Remove Datastore operation
<metadata>
<status>success</status>
</metadata>
<RemoveDatastoreResponse></RemoveDatastoreResponse>
</vmware-infrastructure-response>