Bug 1132078

Summary: RESTAPI: RSDL does not document all available parameters
Product: Red Hat Enterprise Virtualization Manager Reporter: akotov
Component: ovirt-engine-restapiAssignee: Martin Betak <mbetak>
Status: CLOSED ERRATA QA Contact: Artyom <alukiano>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.4.0CC: bazulay, ecohen, gklein, iheim, jbuchta, juan.hernandez, michal.skrivanek, oramraz, rbalakri, Rhev-m-bugs, sherold, yeylon
Target Milestone: ---Flags: lsvaty: testing_plan_complete-
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: vt2.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-11 18:08:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1142923, 1156165    

Description akotov 2014-08-20 15:42:10 UTC
Description of problem:

The ability of being able to clone a VM from a template to a different storage domain using the REST-API has been available since RHEV 3.1, however RSDL 

Version-Release number of selected component (if applicable):

latest rhev, latest ovirt

---


(storage_domain_id currently is present only in <xs:group name="IscsiTarget">), however the ability to clone disk from one storage domain to another is there from 3.1 and needs documenting

# curl -X POST -H 'Accept: application/xml' -H 'Content-type: application/xml' -u admin@internal:<password> --cacert /etc/pki/ovirt-engine/ca.pem https://<engine_fqdn>:443/api/vms -d '<vm><name>gfw-ft</name><cluster><name>Cetus</name></cluster><template><name>cloudinit_base</name></template><disks><clone>true</clone><disk id=\"28b3f46f-b08d-4680-97a5-40bad58a690c\"><storage_domains><storage_domain id=\"8aad6ad0-0efd-4b74-8461-482854a9bb73\"/></storage_domains><format>COW</format></disk></disks></vm>'

Comment 2 Artyom 2014-10-05 13:13:33 UTC
Verified on rhevm-3.5.0-0.13.beta.el6ev.noarch

Comment 4 errata-xmlrpc 2015-02-11 18:08:24 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-0158.html