Update VM Snapshot operation
The Update VM Snapshot operation updates the name and description of the snapshot. With this operation, you need to specify either the name or description of the snapshot to be updated.
The following table describes the elements for this request.
Adapter request elements for the Update VM Snapshot operation
Element | Definition | Required |
|---|---|---|
<operation-type> | Defines the type of operation: Advanced_Vm | Yes |
<operation-name> | Defines the name of operation: Update_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> | Contains the name of the snapshot to be updated | Yes |
<new-name> | Contains the new name for the snapshot | No |
<description> | Contains the new description for the snapshot | No |
The following codes sample shows a sample adapter request for the Update VM Snapshot operation.
Sample adapter request for Update VM Snapshot operation
<operation-type>Advanced_Vm</operation-type>
<operation-name>Update_VM_Snapshot</operation-name>
<soap-url></soap-url>
<transport></transport>
<user-name></user-name>
<password></password>
<parameters>
<virtual-machine>TestDev156</virtual-machine>
<name>NewSnapshot</name>
<new-name>UpdatedSnapshot</new-name>
<description>updated description</description>
</parameters>
</vmware-infrastructure-request>
The following codes sample shows the response for the sample Update VM Snapshot operation.
Sample adapter response for Update VM Snapshot operation
<metadata>
<status>success</status>
</metadata>
<RenameSnapshotResponse></RenameSnapshotResponse>
</vmware-infrastructure-response>