* @param snapshotName
* The name of the snapshot.
* @return The task reference to the snapshot process.
*/
public VirtualMachineTemplateTask snapshot(final String snapshotName) {
VirtualMachineInstanceDto snapshotConfig = new VirtualMachineInstanceDto();
snapshotConfig.setInstanceName(snapshotName);
AcceptedRequestDto<String> response = context.getApi().getCloudApi()
.snapshotVirtualMachine(target, snapshotConfig);
return getTask(response).asVirtualMachineTemplateTask();