Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 911348 - REST-API: Allow copy/move disk from disks collection
Summary: REST-API: Allow copy/move disk from disks collection
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-restapi
Version: unspecified
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 3.4.0
Assignee: Sergey Gotliv
QA Contact: Meital Bourvine
Whiteboard: storage
: 956661 (view as bug list)
Depends On:
Blocks: rhev3.4beta 1142926
TreeView+ depends on / blocked
Reported: 2013-02-14 19:48 UTC by Daniel Erez
Modified: 2016-02-10 17:52 UTC (History)
11 users (show)

Fixed In Version: ovirt-3.4.0-alpha1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed:
oVirt Team: Storage
Target Upstream Version:
sgotliv: needinfo+
dyasny: Triaged+

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
oVirt gerrit 13973 None None None Never

Description Daniel Erez 2013-02-14 19:48:30 UTC
REST-API: Disks collection should support copy/move disk.

Comment 1 Michael Pasternak 2013-04-25 12:21:25 UTC
*** Bug 956661 has been marked as a duplicate of this bug. ***

Comment 3 Sandro Bonazzola 2014-01-14 08:44:54 UTC
ovirt 3.4.0 alpha has been released

Comment 4 Meital Bourvine 2014-02-02 12:11:57 UTC
I can see that the copy and move exist, but I'm not sure what should be the body of copy/move requests.

<disk href= "/api/disks/3b88ab6e-82e7-41bc-99ab-985cda686089" id="3b88ab6e-82e7-41bc-99ab-985cda686089">
<link href= "/api/disks/3b88ab6e-82e7-41bc-99ab-985cda686089/export" rel="export"/>
<link href= "/api/disks/3b88ab6e-82e7-41bc-99ab-985cda686089/move" rel="move"/>
<link href= "/api/disks/3b88ab6e-82e7-41bc-99ab-985cda686089/copy" rel="copy"/>
<link href= "/api/disks/3b88ab6e-82e7-41bc-99ab-985cda686089/permissions" rel="permissions"/>
<link href= "/api/disks/3b88ab6e-82e7-41bc-99ab-985cda686089/statistics" rel="statistics"/>
<storage_domain id="46485cb0-fcb5-43e7-9143-329f669da75f"/>

Comment 5 Sergey Gotliv 2014-02-02 12:18:47 UTC
You trying to copy/move the disk from one storage domain to another, so you have to provide the id of the target storage domain, for example:

<storage_domain id="e0d636c4-10c3-44be-a0ce-26cb59c1631b"/>

Comment 6 Meital Bourvine 2014-02-02 13:24:00 UTC


<storage_domain id="d024b726-afa7-4b52-b5d1-b2f51ef3b5fc"/>

<storage_domain id="d024b726-afa7-4b52-b5d1-b2f51ef3b5fc"/>


<storage_domain id="d024b726-afa7-4b52-b5d1-b2f51ef3b5fc"/>

<action href= "/api/disks/9ba595ff-aa24-4f72-a9d9-795206a3c85f/copy/f2ab732b-6531-4641-8076-1f952eaa5eb8" id="f2ab732b-6531-4641-8076-1f952eaa5eb8">
<link href= "/api/disks/9ba595ff-aa24-4f72-a9d9-795206a3c85f" rel="parent"/>
<link href= "/api/disks/9ba595ff-aa24-4f72-a9d9-795206a3c85f/copy" rel="replay"/>
<storage_domain id="d024b726-afa7-4b52-b5d1-b2f51ef3b5fc"/>
<job href= "/api/jobs/1abed289-fd30-49f2-980c-2a55d8222905" id="1abed289-fd30-49f2-980c-2a55d8222905"/>

Comment 7 Itamar Heim 2014-06-12 14:11:29 UTC
Closing as part of 3.4.0

Note You need to log in before you can comment on or make changes to this bug.