Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

Table of Contents
 

...

{ "name" : "PrincipalName", "type" : "PrincipalType", }
OperationREST APIBodyResponseCLI Command (from Security CLI commands)
create role

PUT /security/authorization/roles/create/<role-name>

N/A

200: Created the role

409: role already exists

 
create role <role-name>
delete roleDELETE /security/authorization/roles/delete/<role-name>N/A

200: Deleted the role

404: role is not found

 
drop role <role-name>
add role to principalPOST PUT /security/authorization/<principal-type>/<principal-name>/roles/<role-name>/add
Code Block
titlePrincipal
{
  "name" : "PrincipalName",
  "type" : "PrincipalType",
}

200: Added principal to role

404: role  

200: Added role to principal

404: role not found

404: principal not found

 
add role <role-name> to group/user <group/user-name>
remove role from principalDELETE /security/authorization/<principal-type>/<principal-name>/roles/<role-name>/remove
Code Block
titlePrincipal

 

200: removed role from principal from role

404: role not found

404: principal not found

 
remove role <role-name> from group/user <group/user-name>
List rolesGET /security/authorization/roles/N/A

200: List of roles

Code Block
titleRoles
["Role", "Role2"]
list roles
 List roles for principalGET /security/authorization/<principal-type>/<principal-name>/roles

N/

principal
Code Block
titlePrincipal
{
  "name" : "PrincipalName",
  "type" : "PrincipalType",
}

A

 200: List of roles

Code Block
titleRoles
["Role", "Role2"]

404: Principal not found

list roles for group/user <group/user-name>
 List privileges for roleGET /security/roleauthorization/roles/<role-name>/privileges privilegesN/A 

 200: List of privileges for the role

Code Block
titlePrivileges
["Privilege1", "Privilege2"]

404: role not found

list privileges for role <role-name>

 

 

ACL management

There are multiple options for ACL Management. For dataset-based authorizer, we will have to support ACL Management via the CDAP CLI.

...