Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-15036

Return privilege information with results from GroupResourceProvider

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.4.0
    • 2.4.0
    • ambari-server

    Description

      Return privilege information with results from GroupResourceProvider, which is invoked when issuing the following REST API call:

      GET /api/v1/groups
      

      The result set should looks something like:

      {
        "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"
                }
              }
            ]
          }
        ]
      }
      

      Attachments

        1. AMBARI-15036_trunk_01.patch
          43 kB
          Robert Levas

        Issue Links

          Activity

            People

              rlevas Robert Levas
              rlevas Robert Levas
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: