Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1219831

Summary: [REGENERATE JAVA SDK] Allow use of role names in api definitions
Product: Red Hat Enterprise Virtualization Manager Reporter: Juan Hernández <juan.hernandez>
Component: ovirt-engine-sdk-javaAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Antonin Pagac <apagac>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.4.0CC: apagac, bazulay, gassmann, gklein, juan.hernandez, lsurette, oourfali, pmukhedk, rbalakri, Rhev-m-bugs, sherold, srevivo, ykaul, ylavi
Target Milestone: ovirt-3.6.0-rc   
Target Release: 3.6.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ovirt-engine-sdk-java-3.6.0.0-0.12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1152989 Environment:
Last Closed: 2016-04-20 01:10:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1152989    
Bug Blocks:    

Description Juan Hernández 2015-05-08 11:48:02 UTC
+++ This bug was initially created as a clone of Bug #1152989 +++

Description of problem:

Currently, If we want to add the role "UserVmManager" to a group we need to get the Id of that role first.

Current API:

<permission>
    <role id="00000000-0000-0000-0000-000000000001" />
    <group id="abee5751-3857-46dd-abaa-03f57bca2e86"/>
</permission>

I would like to directly use the role name:

<permission>
    <role><name>UserVmManager</name></role>
    <group id="abee5751-3857-46dd-abaa-03f57bca2e86"/>
</permission>

with most other resource references this already works, For example,
network can be referenced by id or by name: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.4/html-single/Technical_Guide/index.html#sect-Networks_Sub-Collection

why not roles than?

Comment 1 Antonin Pagac 2015-07-14 11:54:17 UTC
ovirt-engine-sdk-java-3.6.0.0-0.12.20150623.gite9a4212.el6.noarch.rpm

Verified.