Change in ovirt-engine[ovirt-engine-3.4]: core, restapi: provide capabillity to get vm ovf config

Itamar Heim has submitted this change and it was merged. Change subject: core, restapi: provide capabillity to get vm ovf config ...................................................................... core, restapi: provide capabillity to get vm ovf config This patch adds the capabllity to get the current vm configuration (if possible) through the ovirt rest-api. The usage is done through a GET request to /api/vms or /api/vms/GUID/ with All-Content header with 'true' as the value. If the VM OVF configuration couldn't be generated succesfully (if the vm is currentky locked for example), the configuration won't be returned as part of the result. Change-Id: I5cbcd666519ffd138fd3efd4e130495529eaec0f Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1047965 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1060575 Signed-off-by: Liron Aravot <laravot@redhat.com> --- A backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/GetVmOvfByVmIdQuery.java M backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/OvfHelper.java A backend/manager/modules/bll/src/test/java/org/ovirt/engine/core/bll/GetVmOvfByVmIdQueryTest.java A backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/GetVmOvfByVmIdParameters.java M backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/queries/VdcQueryType.java M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendVmResource.java M backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/restapi/resource/BackendVmsResource.java M backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/BackendVmResourceTest.java M backend/manager/modules/restapi/jaxrs/src/test/java/org/ovirt/engine/api/restapi/resource/BackendVmsResourceTest.java M backend/manager/modules/restapi/types/src/main/java/org/ovirt/engine/api/restapi/types/VmMapper.java M backend/manager/modules/restapi/types/src/test/java/org/ovirt/engine/api/restapi/types/VmMapperTest.java 11 files changed, 287 insertions(+), 5 deletions(-) Approvals: Tal Nisan: Looks good to me, approved Liron Ar: Verified -- To view, visit http://gerrit.ovirt.org/24410 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: merged Gerrit-Change-Id: I5cbcd666519ffd138fd3efd4e130495529eaec0f Gerrit-PatchSet: 3 Gerrit-Project: ovirt-engine Gerrit-Branch: ovirt-engine-3.4 Gerrit-Owner: Liron Ar <laravot@redhat.com> Gerrit-Reviewer: Allon Mureinik <amureini@redhat.com> Gerrit-Reviewer: Daniel Erez <derez@redhat.com> Gerrit-Reviewer: Itamar Heim <iheim@redhat.com> Gerrit-Reviewer: Liron Ar <laravot@redhat.com> Gerrit-Reviewer: Tal Nisan <tnisan@redhat.com> Gerrit-Reviewer: automation@ovirt.org Gerrit-Reviewer: oVirt Jenkins CI Server
participants (1)
-
iheim@redhat.com