Delete VM Snapshot operation
The Delete VM Snapshot operation removes the specified snapshot and deletes any storage associated with the snapshot.
The following table describes the elements for this request.
Adapter request elements for Delete VM Snapshot operation
Element | Definition | Required |
---|---|---|
<operation-type> | Defines the type of operation: Advanced_Vm | Yes |
<operation-name> | Defines the name of operation: Delete_VM_Snapshot | 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 |
<virtual-machine> | Contains the name of the virtual machine on which this operation is to be executed | Yes |
<name> | Specifies the parent/child hierarchy of the snapshot that must be deleted The name need not be unique for the specified virtual machine. Valid value: Any string | Yes |
<remove-children> | Indicates whether to remove the entire snapshot subtree Valid values: true, false | Yes |
The following code sample shows a sample adapter request for the Delete VM Snapshot operation to delete VM snapshot "SNAP_67890000":
Sample adapter request for Delete VM Snapshot operation
<operation-type>Advanced_VM</operation-type>
<operation-name>Delete_VM_Snapshot</operation-name>
<soap-url></soap-url>
<transport></transport>
<user-name></user-name>
<password></password>
<parameters>
<virtual-machine>TestDev156</virtual-machine>
<name>SNAP_12345000/SNAP_67890000</name>
<remove-children>true</remove-children>
</parameters>
</vmware-infrastructure-request>
The following code sample shows the response for the sample Delete VM Snapshot operation.
Sample adapter response for Delete VM Snapshot operation
<metadata>
<status>success</status>
</metadata>
<RemoveSnapshot_TaskResponse>
<Task>task-6932</Task>
</RemoveSnapshot_TaskResponse>
</vmware-infrastructure-response>