Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1139266 - [Docs][Technical][Async] RHEV REST API Documentation not up to date
[Docs][Technical][Async] RHEV REST API Documentation not up to date
Status: CLOSED CURRENTRELEASE
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: Documentation (Show other bugs)
3.4.0
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Andrew Burden
Laura Novich
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-08 09:51 EDT by Philipp Gassmann
Modified: 2016-01-26 20:59 EST (History)
8 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1172619 (view as bug list)
Environment:
Build Name: 22723, Technical Guide-3.4-1.0 Build Date: 25-08-2014 13:27:56 Topic ID: 7641-591799 [Specified]
Last Closed: 2015-02-05 21:15:12 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Philipp Gassmann 2014-09-08 09:51:25 EDT
Title: RHEV REST API Documentation not up to date

Describe the issue:
During the implementaion of Puppet Providers for RHEV that uses its REST api I came across some inacuracies in the documentation.

- Datacenter API:
There's no need to specify storage type in 3.4. Only local => true/false is required. Also the output of GET is not up-to-date.
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.4/html/Technical_Guide/Example_List_Data_Center_Collection.html
actual output:
<data_centers>
    <data_center href="/api/datacenters/00000002-0002-0002-0002-000000000000" id="00000002-0002-0002-0002-000000000000">
        <name>Default</name>
        <description>The default Data Center</description>
        <link href="/api/datacenters/00000002-0002-0002-0002-000000000000/storagedomains" rel="storagedomains"/>
        <link href="/api/datacenters/00000002-0002-0002-0002-000000000000/clusters" rel="clusters"/>
        <link href="/api/datacenters/00000002-0002-0002-0002-000000000000/networks" rel="networks"/>
        <link href="/api/datacenters/00000002-0002-0002-0002-000000000000/permissions" rel="permissions"/>
        <link href="/api/datacenters/00000002-0002-0002-0002-000000000000/quotas" rel="quotas"/>
        <local>false</local>
        <version major="3" minor="4"/>
        <supported_versions>
            <version major="3" minor="4"/>
        </supported_versions>
        <status>
            <state>uninitialized</state>
        </status>
    </data_center>
</data_centers>


Similar https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.4/html/Technical_Guide/sect-Methods.html
requires now:
<data_center>
  <name>#{name}</name>
  <local>#{local}</local>
  <version major=\"#{version_maj}\" minor=\"#{version_min}\"/>
  <description>#{description}</description>
</data_center>


Additional information:
Creation of a datacenter with a storage_type as in the current documentation still works too, but the storage type can't be queried.
Comment 1 Julie 2014-09-09 03:34:19 EDT
(In reply to Philipp Gassmann from comment #0)
> Title: RHEV REST API Documentation not up to date
> 
> Describe the issue:
> During the implementaion of Puppet Providers for RHEV that uses its REST api
> I came across some inacuracies in the documentation.
> 
> - Datacenter API:
> There's no need to specify storage type in 3.4. Only local => true/false is
> required. Also the output of GET is not up-to-date.
> https://access.redhat.com/documentation/en-US/
> Red_Hat_Enterprise_Virtualization/3.4/html/Technical_Guide/
> Example_List_Data_Center_Collection.html
> actual output:
> <data_centers>
>     <data_center
> href="/api/datacenters/00000002-0002-0002-0002-000000000000"
> id="00000002-0002-0002-0002-000000000000">
>         <name>Default</name>
>         <description>The default Data Center</description>
>         <link
> href="/api/datacenters/00000002-0002-0002-0002-000000000000/storagedomains"
> rel="storagedomains"/>
>         <link
> href="/api/datacenters/00000002-0002-0002-0002-000000000000/clusters"
> rel="clusters"/>
>         <link
> href="/api/datacenters/00000002-0002-0002-0002-000000000000/networks"
> rel="networks"/>
>         <link
> href="/api/datacenters/00000002-0002-0002-0002-000000000000/permissions"
> rel="permissions"/>
>         <link
> href="/api/datacenters/00000002-0002-0002-0002-000000000000/quotas"
> rel="quotas"/>
>         <local>false</local>
>         <version major="3" minor="4"/>
>         <supported_versions>
>             <version major="3" minor="4"/>
>         </supported_versions>
>         <status>
>             <state>uninitialized</state>
>         </status>
>     </data_center>
> </data_centers>
> 
> 
> Similar
> https://access.redhat.com/documentation/en-US/
> Red_Hat_Enterprise_Virtualization/3.4/html/Technical_Guide/sect-Methods.html
> requires now:
> <data_center>
>   <name>#{name}</name>
>   <local>#{local}</local>
>   <version major=\"#{version_maj}\" minor=\"#{version_min}\"/>
>   <description>#{description}</description>
> </data_center>
> 
> 
> Additional information:
> Creation of a datacenter with a storage_type as in the current documentation
> still works too, but the storage type can't be queried.
Hi Philipp,
    Thanks for filing this bug. This bug has been assigned and is currently work in progress.

Cheers,
Julie
Comment 2 Andrew Burden 2014-10-14 00:10:55 EDT
Thanks for the feedback, Philipp.
I've updated the 'Example: List Data Center Collection', 'Data Center Elements', and the example 'Creating a New Data Center' topics to match reality. 

I'll post the 3.4 and 3.5 documentation links when these books are next published. 

Thanks again,
Andrew


Internal:
ID 7641-716349
   7965-716362
   7729-716366
Comment 3 Andrew Burden 2014-10-16 03:09:32 EDT
Documentation Link
------------------------------
1) http://documentation-devel.engineering.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Technical_Guide/Example_List_Data_Center_Collection.html (3.5)

http://documentation-devel.engineering.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.4/html/Technical_Guide/Example_List_Data_Center_Collection.html (3.4)

2) http://documentation-devel.engineering.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Technical_Guide/chap-Data_Centers.html#Data_Center_Elements

3) http://documentation-devel.engineering.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html/Technical_Guide/sect-Methods2.html#Creating_a_New_Data_Center1


What Changed 
------------------------------
1) Updated the output for 3.5
Example: List Data Center Collection [7641-716398]
   Updated the output for 3.4
Example: List Data Center Collection [7641-716349]

2) 'local' is no longer read-only, but is now required for creation. Conversely, 'storage_format' and 'version' are no longer required for creation.
Data Center Elements [7965-716362]

3) Removed two elements no longer inherently necessary for DC creation, and added 'local' as it now is necessary for DC creation.
Creating a New Data Center [7729-716366]

Updated revision history: [34616-716400] (3.5)
Updated revision history: [30107-716402] (3.4)
716402


Versions Applicable: 3.5, 3.4


NVR
------------------------------
Red_Hat_Enterprise_Virtualization-Technical_Guide-3.5-web-en-US-3.5-19.el6eng
Red_Hat_Enterprise_Virtualization-Technical_Guide-3.4-web-en-US-3.4-20.el6eng

Note You need to log in before you can comment on or make changes to this bug.