[
https://issues.apache.org/jira/browse/SQOOP-1979?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14269004#comment-14269004
]
Richard edited comment on SQOOP-1979 at 2/10/15 7:18 AM:
---------------------------------------------------------
PUT /authorization/roles/create
Create new role with {name}
DELETE /authorization/role/{role-name}
GET /authorization/roles
Show all roles
GET /authorization/principals?role_name={name}
Show all principals in role with {name}
GET /authorization/roles?principal_type={type}&principal_name={name}
Show all roles in principal with {name, type}
PUT /authorization/roles/grant
Grant a role to a user/group/role
PUT data of JsonObject role(name) and principal (name, type)
PUT /authorization/roles/revoke
Revoke a role to a user/group/role
PUT data of JsonObject role(name) and principal (name, type)
PUT /authorization/privileges/grant
Grant a privilege to a principal
PUT data of JsonObject principal(name, type) and privilege (resource-name,
resource-type, action, with-grant-option)
PUT /authorization/privileges/revoke
Revoke a privilege to a principal
PUT data of JsonObject principal(name, type) and privilege (resource-name,
resource-type, action, with-grant-option)
If privilege is null, then revoke all privileges for principal(name, type)
GET
/authorization/privileges?principal_type={type}&principal_name={name}&resource_type={type}&resource_name={name}
Show all privileges in principal with {name, type} and resource with
{resource-name, resource-type}
If resource is null, then show all privileges in principal with {name, type}
was (Author: richard_zhou):
PUT /authorization/roles/create
Create new role with role_name
DELETE /authorization/role/{role_name}
GET /authorization/roles
Show all roles
GET /authorization/principals?role_name={role_name}
Show all principals in role with {role_name}
GET /authorization/roles?principal_type={type}&principal_name={name}
Show all roles in principal with {name, type}
PUT /authorization/roles/grant
Grant a role to a user/group/role
PUT data of JsonObject role(role_name) and principal (name, type)
PUT /authorization/roles/revoke
Revoke a role to a user/group/role
PUT data of JsonObject role(role_name) and principal (name, type)
PUT /authorization/privileges/grant
Grant a privilege to a principal
PUT data of JsonObject principal(name, type) and privilege (resource (name,
type), action, with_grant_option)
PUT /authorization/privileges/revoke
Revoke a privilege to a principal
PUT data of JsonObject principal(name, type) and privilege (resource (name,
type), action, with_grant_option)
If privilege is null, then revoke all privileges for principal(name, type)
GET
/authorization/privileges?principal_type={type}&principal_name={name}&resource_type={type}&resource_name={name}
Show all privileges in principal with {name, type} and resource with
{resource_name, resource_type}
If resource is null, then show all privileges in principal with {name, type}
> SQOOP2: Rest API support
> ------------------------
>
> Key: SQOOP-1979
> URL: https://issues.apache.org/jira/browse/SQOOP-1979
> Project: Sqoop
> Issue Type: Sub-task
> Components: sqoop2-framework
> Reporter: Richard
> Assignee: Richard
> Fix For: 1.99.7
>
> Attachments: SQOOP-1979.0.patch
>
>
> Handle Rest API in server side to grant/revoke role, etc.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)