@GET @ApiIgnore // until documented
  @Produces("text/plain")
  public Response getPrivileges(@Context HttpHeaders headers, @Context UriInfo ui) {
    return handleRequest(headers, null, ui, Request.Type.GET, createPrivilegeResource(null));
  }
Handles: GET  /privileges
Get all privileges.

@param headers  http headers
@param ui       uri info

@return privilege collection representation
ambari-server/src/main/java/org/apache/ambari/server/api/services/PrivilegeService.java