Bug 977091

Summary: [RESTAPI] Template's timezone property should be accessible in API
Product: Red Hat Enterprise Virtualization Manager Reporter: Ido Begun <ibegun>
Component: ovirt-engine-restapiAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Novotny <pnovotny>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: bazulay, iheim, mavital, michal.skrivanek, oramraz, rbalakri, Rhev-m-bugs, sherold, srevivo
Target Milestone: ---   
Target Release: 3.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: org.ovirt.engine-root-3.5.0-4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-02-17 08:28:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1142923, 1156165    

Description Ido Begun 2013-06-23 13:07:32 UTC
Description of problem:
Currently there's no way to view/edit the timezone property of a template in API, while it's possible in UI.
Since everything that can be done in UI should be also be available in API, we should have access to this property in API.

Version-Release number of selected component (if applicable):
rhevm-3.2.1-0.31

How reproducible:
100%

Steps to Reproduce:
GET request on template

Actual results:
Template has no timezone property.

Expected results:
<template ...>
...
<timezone>...</timezone>
...
</template>


Additional info:
This property exists for VM's in both UI and API.

Comment 4 Juan Hernández 2014-07-11 10:13:50 UTC
I'm checking this with latest upstream 3.5 master, and it works for me. I'm moving to MODIFIED so that QE can check it works with the next downstream release.

Comment 5 Pavel Novotny 2014-08-12 11:19:21 UTC
Verified upstream in ovirt-engine-3.5.0-0.0.master.20140804172041.git23b558e.el6.noarch (rc1).

REST API now exposes the time zone attribute. Applies for templates of all OS types.

GET /ovirt-engine/api/templates/<uuid>/ returns:

<template href="/ovirt-engine/api/templates/<uuid>">
...
  <timezone>America/Anchorage</timezone>
...
</template>

Comment 6 Omer Frenkel 2015-02-17 08:28:34 UTC
RHEV-M 3.5.0 has been released