[ 
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:40 AM:
---------------------------------------------------------

{code}
PUT /authorization/roles/create
Create new role with {name}
{code}
{code}
DELETE /authorization/role/{role-name}
{code}
{code}
GET /authorization/roles
Show all roles
{code}
{code}
GET /authorization/principals?role_name={name}
Show all principals in role with {name}
{code}
{code}
GET /authorization/roles?principal_type={type}&principal_name={name}
Show all roles in principal with {name, type}
{code}
{code}
PUT /authorization/roles/grant
Grant a role to a user/group/role
PUT data of JsonObject role(name) and principal (name, type)
{code}
{code}
PUT /authorization/roles/revoke
Revoke a role to a user/group/role
PUT data of JsonObject role(name) and principal (name, type)
{code}
{code}
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)
{code}
{code}
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)
{code}
{code}
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}
{code}


was (Author: richard_zhou):
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}

> 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, SQOOP-1979.1.patch, 
> SQOOP-1979.2.patch, SQOOP-1979.3.patch
>
>
> Handle Rest API in server side to grant/revoke role, etc.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to