I'm trying to import an ovf template to a vsan storage,the ovf contains a vmdk disk file and a floppy file. Using the returned device url from httpNfcLease, such as https://*/nfc/529fd5cb-757a-1f48-...
See more...
I'm trying to import an ovf template to a vsan storage,the ovf contains a vmdk disk file and a floppy file. Using the returned device url from httpNfcLease, such as https://*/nfc/529fd5cb-757a-1f48-9704-fe503fc23531/disk-0.vmdk, I used https post to upolad vmdk file successfully. But when I trying to use https put upload the floppy file, exeception occurs. The floppy device url is https://*/nfc/529fd5cb-757a-1f48-9704-fe503fc23531/disk-1.flp . The reason for the error is 'File exists, but overwrite was not requested'. Indeed,The default floppy file _deviceImage-0.flp is generated on the virtual machine's storage path. When I deleted the floppy file, the upload was successful. But How can I automatically overwrite the original file when I upload it? Is there any http header that will meet my needs? any help would be much appreciated