Change in ovirt-engine[master]: restapi: Allow creation of new disks as copy of any existing...

tjelinek at redhat.com tjelinek at redhat.com
Thu May 14 07:47:50 UTC 2015


Tomas Jelinek has submitted this change and it was merged.

Change subject: restapi: Allow creation of new disks as copy of any existing disk
......................................................................


restapi: Allow creation of new disks as copy of any existing disk

This patch allows to copy a VM, Template or floating Disk to a different or
same storage domain.

A new optional argument has been added: "name". If the name is set, the copied
disk's alias will be set to the given value. If not, the alias of the copied
disk will be used.

Example:
POST to .../api/disks/<disk id>/copy

<action>
<storage_domain id="14e6e9f3-9fe9-493b-b9ba-793cb441f9ad" />
<disk><alias>newDiskAlias</alias></disk>
</action>

Bug-Url: https://bugzilla.redhat.com/1132066
Signed-off-by: Tomas Jelinek <tjelinek at redhat.com>
Change-Id: I8931d2464d6ad17a80d9b394f16d01a2c47d7575
---
M backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendDiskResource.java
2 files changed, 17 insertions(+), 0 deletions(-)

Approvals:
  Tomas Jelinek: Verified
  Juan Hernandez: Looks good to me, approved
  Jenkins CI: Looks good to me, but someone else must approve



-- 
To view, visit https://gerrit.ovirt.org/38367
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I8931d2464d6ad17a80d9b394f16d01a2c47d7575
Gerrit-PatchSet: 6
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Tomas Jelinek <tjelinek at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Maor Lipchuk <mlipchuk at redhat.com>
Gerrit-Reviewer: Tal Nisan <tnisan at redhat.com>
Gerrit-Reviewer: Tomas Jelinek <tjelinek at redhat.com>
Gerrit-Reviewer: automation at ovirt.org



More information about the Engine-commits mailing list