ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Beerbower (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-6543) Views : Admin - Add Privilege Resource
Date Fri, 18 Jul 2014 22:08:05 GMT
Tom Beerbower created AMBARI-6543:
-------------------------------------

             Summary: Views : Admin - Add Privilege Resource
                 Key: AMBARI-6543
                 URL: https://issues.apache.org/jira/browse/AMBARI-6543
             Project: Ambari
          Issue Type: Task
            Reporter: Tom Beerbower
            Assignee: Tom Beerbower
             Fix For: 1.7.0


Add service/resource, resource provider and db tables/entities for Privilege resources as
described in the Admin doc ...

https://docs.google.com/a/hortonworks.com/document/d/1heCrAA6hNM8qvQ091f8KGICABw2pY6Pt25uyfAvV8SQ/edit?disco=AAAAAJqU6lg#


API support

{code}

POST
/api/v1/views/WEATHER/versions/1.0.0/instances/US_WEST/privileges
Request
[
  {
    "Privileges" : {
      "permission_name" : "VIEW.USE",
      "principal_name" : "Jeff",
      "principal_type" : "user"
    }
  }
]
{code}

{code}

POST
/api/v1/views/WEATHER/versions/1.0.0/instances/US_WEST/privileges
Request
[
  {
    "Privileges" : {
      "permission_name" : "VIEW.USE",
      "principal_name" : "Engineering",
      "principal_type" : "group"
    }
  }
]
{code}

{code}

DELETE
/api/v1/views/WEATHER/versions/1.0.0/instances/US_WEST/privileges?Privileges/principal_type=user&Privileges/principal_name=Jeff
{code}

{code}

DELETE
/api/v1/views/WEATHER/versions/1.0.0/instances/US_WEST/privileges?Privileges/principal_type=group&Privileges/principal_name=Engineering
{code}




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message