Change in ovirt-engine[master]: restapi: Add support for removing a Template from specified ...

mpastern at redhat.com mpastern at redhat.com
Mon May 21 07:04:22 UTC 2012


Michael Pasternak has submitted this change and it was merged.

Change subject: restapi: Add support for removing a Template from specified storage domain(s)
......................................................................


restapi: Add support for removing a Template from specified storage domain(s)

added two new signatures:

1. DELETE /api/templates/{template:id}/disks/{disk:id}

- used to delete disk based on direct-lun

2. DELETE /api/templates/{template:id}/disks/{disk:id}

<action>
  <storage_domain id="xxx"/>
</action>

and/or

<action>
  <force>true|false<force/>
</action>

- used to delete disk from storagedomain or /force/ disk removal

Change-Id: I1a4d57d183671f89aea632ef5bb15db5a8fb921f
Signed-off-by: Michael Pasternak <mpastern at redhat.com>
---
A backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/resource/TemplateDisksResource.java
M backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/resource/TemplateResource.java
M backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata_v-3.1.yaml
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendGroupsResource.java
A backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendTemplateDisksResource.java
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendTemplateResource.java
A backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/BackendTemplateDisksResourceTest.java
7 files changed, 342 insertions(+), 8 deletions(-)

Approvals:
  Michael Pasternak: Verified; Looks good to me, approved


--
To view, visit http://gerrit.ovirt.org/4566
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I1a4d57d183671f89aea632ef5bb15db5a8fb921f
Gerrit-PatchSet: 5
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Michael Pasternak <mpastern at redhat.com>
Gerrit-Reviewer: Michael Pasternak <mpastern at redhat.com>
Gerrit-Reviewer: Ori Liel <oliel at redhat.com>



More information about the Engine-commits mailing list