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

@param headers  http headers
@param ui       uri info

@return permission collection resource representation
ambari-server/src/main/java/org/apache/ambari/server/api/services/PermissionService.java