Change in ovirt-engine[master]: restapi: Add "size" support to VMs

juan.hernandez at redhat.com juan.hernandez at redhat.com
Thu Nov 20 14:32:46 UTC 2014


Juan Hernandez has submitted this change and it was merged.

Change subject: restapi: Add "size" support to VMs
......................................................................


restapi: Add "size" support to VMs

This patch adds support for new "size" detail specifications for the VMs
collection.

When the "size" detail is requested the result will look like thiss:

  GET /vms;detail=+size HTTP/1.1
  All-Content: true

  <vms>
    <size>123</size>
    <vm id="..." href="...">
      ...
    </vm>
    ...
  </vms>

The "main" detail is intended to suppress output of the actual data, so that
only the size will be populated:

  GET /vms;detail=-main+size HTTP/1.1
  All-Content: true

  <vms>
    <size>123</size>
  </vms>

Change-Id: Ic089745a03e7f01d4c96e9267c0ff084bd913e0d
Bug-Url: https://bugzilla.redhat.com/1132247
Signed-off-by: Juan Hernandez <juan.hernandez at redhat.com>
---
M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendVmsResource.java
1 file changed, 27 insertions(+), 16 deletions(-)

Approvals:
  Juan Hernandez: Verified; Looks good to me, approved



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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic089745a03e7f01d4c96e9267c0ff084bd913e0d
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Ori Liel <oliel at redhat.com>
Gerrit-Reviewer: automation at ovirt.org
Gerrit-Reviewer: oVirt Jenkins CI Server



More information about the Engine-commits mailing list