Change in ovirt-engine[master]: restapi: Use "detach_only" matrix parameter to detach VM disk
juan.hernandez at redhat.com
juan.hernandez at redhat.com
Mon Nov 2 07:55:46 UTC 2015
Juan Hernandez has submitted this change and it was merged.
Change subject: restapi: Use "detach_only" matrix parameter to detach VM disk
......................................................................
restapi: Use "detach_only" matrix parameter to detach VM disk
The operation that removes a virtual machine disk supports a "detach"
parameter. In order to use it the "DELETE" method supports an optional
action parameter:
DELETE /vms/{vm:id}/disks/{disk:id}
<action>
<detach>true</detach>
</action>
This patch remplaces the optional action parameter with an optional
matrix parameter:
DELETE /vms/{vm:id}/disks/{disk:id};detach_only=true
Change-Id: Ie7f222bf2d4ba5be2d107d3f91eb0acbd5590288
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
---
M backend/manager/modules/restapi/README.md
M backend/manager/modules/restapi/interface/definition/src/main/java/org/ovirt/engine/api/resource/VmDiskResource.java
M backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml
M backend/manager/modules/restapi/interface/definition/src/main/schema/api.xsd
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendVmDiskResource.java
M backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/BackendVmDiskResourceTest.java
6 files changed, 41 insertions(+), 33 deletions(-)
Approvals:
Juan Hernandez: Verified; Looks good to me, approved; Passed CI tests
--
To view, visit https://gerrit.ovirt.org/47892
To unsubscribe, visit https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie7f222bf2d4ba5be2d107d3f91eb0acbd5590288
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
More information about the Engine-commits
mailing list