You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Robert Levas (JIRA)" <ji...@apache.org> on 2016/02/16 18:59:18 UTC

[jira] [Updated] (AMBARI-15036) Return privilege information with results from GroupResourceProvider

     [ https://issues.apache.org/jira/browse/AMBARI-15036?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Levas updated AMBARI-15036:
----------------------------------
    Attachment: AMBARI-15036_trunk_01.patch

> Return privilege information with results from GroupResourceProvider
> --------------------------------------------------------------------
>
>                 Key: AMBARI-15036
>                 URL: https://issues.apache.org/jira/browse/AMBARI-15036
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-server
>    Affects Versions: 2.4.0
>            Reporter: Robert Levas
>            Assignee: Robert Levas
>              Labels: rbac
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-15036_trunk_01.patch
>
>
> Return privilege information with results from GroupResourceProvider, which is invoked when issuing the following REST API call:
> {noformat}
> GET /api/v1/groups
> {noformat}
> The result set should looks something like:
> {code}
> {
>   "href" : "http://ambari-server:8080/api/v1/groups?fields=privileges/*",
>   "items" : [
>     {
>       "href" : "http:///ambari-server:8080/api/v1/groups/group1",
>       "Groups" : {
>         "group_name" : "group1"
>       },
>       "privileges" : [
>         {
>           "href" : "http://ambari-server:8080/api/v1/groups/group1/privileges/1",
>           "PrivilegeInfo" : {
>             "cluster_name" : "c1",
>             "permission_label" : "Cluster User",
>             "permission_name" : "CLUSTER.USER",
>             "principal_name" : "group1",
>             "principal_type" : "GROUP",
>             "privilege_id" : 3,
>             "type" : "CLUSTER",
>             "group_name" : "group1"
>           }
>         }
>       ]
>     }
>   ]
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)