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/12 21:12:18 UTC
[jira] [Created] (AMBARI-15036) Return privilege information with
results from GroupResourceProvider
Robert Levas created AMBARI-15036:
-------------------------------------
Summary: 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
Fix For: 2.4.0
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)