i'm using OLVM 4.3.10 oVirt and i'm trying to import a VM from the Export 
Storage Domain with the REST API.

curl command is:

curl \
-X POST  \
--header "Version:4" \
--header "Accept:application/xml" \
--header "Content-type:application/xml" \
--user $_OLVM_USERNAME:$_OLVM_PASSWORD \
--data '
<action>
<storage_domain>
<name>'$DST_SD'</name>
</storage_domain>
<cluster>
<name>'$CLUSTER'</name>
</cluster>
<clone>true</clone>
<vm>
<name>'$VM_NAME'</name>
</vm>
</action>
'
https://$_OLVM_HOSTNAME/ovirt-engine/api/storagedomains/$SRC_SD_ID/vms/$SD_VM_ID/import

Response is:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
</body></html>

When i use the same syntax to just get a list of importable VMs there is no 
error and the Response is a xml entity.

Any idea?
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/QBOLEYD64OZ6TZOZYEVFJPJXJXRDTBPO/

Reply via email to