Bug 1219797

Summary: [Docs][Tech] Group API Change is not documented
Product: Red Hat Enterprise Virtualization Manager Reporter: Alexandros Gkesos <agkesos>
Component: DocumentationAssignee: Julie <juwu>
Status: CLOSED CURRENTRELEASE QA Contact: Tahlia Richardson <trichard>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: agkesos, ecohen, gassmann, juwu, lsurette, pablo.iranzo, ppostler, pstehlik, rbalakri, yeylon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-24 07:18:31 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: 1244999    

Description Alexandros Gkesos 2015-05-08 10:15:26 UTC
Title: Changes needed on RHEV-M 3.5 Technical Guide: Chapter 35. Groups

Describe the issue: 

The API to add and manage Groups has changed between 3.4 and 3.5, but the documentation was not updated.

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.5/html-single/Technical_Guide/index.html#chap-Groups

The domain.id|name has to be specified too, to add a group. Previously it was extracted from the Group name. 
A request as specified in the docs gets this response:

<fault>
<reason>Incomplete parameters</reason>
<detail>Group [domain.id|name] required for add</detail>
</fault>

The representation of groups has changed too.

3.4:
    <group href="/api/groups/groupID" id="groupID">
        <name>NAME</name>
        <link href="/api/groups/groupID/permissions" rel="permissions"/>
        <link href="/api/groups/groupID/roles" rel="roles"/>
        <link href="/api/groups/groupID/tags" rel="tags"/>
        <domain href="/api/domains/domainID" id="domainID"/>
    </group>

3.5:
    <group href="/api/groups/groupID" id="groupID">
        <name>NAME</name>
        <link href="/api/groups/groupID/permissions" rel="permissions"/>
        <link href="/api/groups/groupID/roles" rel="roles"/>
        <link href="/api/groups/groupID/tags" rel="tags"/>
        <domain href="/api/domains/domainID" id="domainID">
            <name>domainNAME</name>
        </domain>
        <domain_entry_id>DOMAIN_ENTRY_ID</domain_entry_id>
        <namespace>*</namespace>
    </group>


Suggestions for improvement:

Add the changes