How to over-write VMs in Export-Domain via REST API ?

Solution Verified - Updated -


  • The issue is, when a VM is already present in the export-domain and one tries to re-export the same VM again to the Export-domain, using the following curl syntax, one cannot achieve the same:
# curl --insecure -u admin@internal:***** -X POST -H "Accept: application/xml" -H "Content-type: 
application/xml" -d "<action><storage_domain><name>export</name></storage_domain><overwrite>true</overwrite>
  • The curl syntax is executed from RHEV-Manager.

  • The following reply is returned:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
         <reason>Operation Failed</reason>
         <detail>[Cannot export VM. VM with the same identifier already exists.]</detail>
  • The tag has been used, which should overwrite the files on the export-domain.

  • This tag is completely being ignored and instead the following error is returned:

"Cannot export VM. VM with the same identifier already exists"


  • Red Hat Enterprise Virtualization 3.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In