media type | data type | description |
---|---|---|
application/json | RangerRoleList (JSON) |
GET /roles/roles
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"roles" : [ {
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}, {
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
} ],
"listSize" : 12345,
"list" : [ { }, { } ],
"startIndex" : 12345,
"pageSize" : 12345,
"totalCount" : 12345,
"resultSize" : 12345,
"sortType" : "...",
"sortBy" : "..."
}
name | type | description | default | constraints |
---|---|---|---|---|
createNonExistUserGroup | query | false | boolean | |
serviceName | query |
media type | data type |
---|---|
application/json | RangerRole (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerRole (JSON) |
POST /roles/roles
Content-Type: application/json
Accept: application/json
{
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
name | type | description | default | constraints |
---|---|---|---|---|
serviceName | path | |||
clusterName | query | |||
lastActivationTime | query | 0 | long | |
lastKnownRoleVersion | query | -1 | long | |
pluginCapabilities | query | |||
pluginId | query |
media type | data type | description |
---|---|---|
application/json | RangerRoles (JSON) |
GET /roles/download/{serviceName}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"roleVersion" : 12345,
"rangerRoles" : [ {
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}, {
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
} ],
"roleUpdateTime" : 12345,
"serviceName" : "..."
}
media type | data type | description |
---|---|---|
application/json | RangerRoleList (JSON) |
GET /roles/lookup/roles
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"roles" : [ {
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}, {
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
} ],
"listSize" : 12345,
"list" : [ { }, { } ],
"startIndex" : 12345,
"pageSize" : 12345,
"totalCount" : 12345,
"resultSize" : 12345,
"sortType" : "...",
"sortBy" : "..."
}
name | type | description |
---|---|---|
execUser | query | |
serviceName | query |
media type | data type | description |
---|---|---|
application/json | array of string (JSON) |
GET /roles/roles/names
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
...
name | type | description | constraints |
---|---|---|---|
id | path | long |
DELETE /roles/roles/{id}
Content-Type: */*
...
HTTP/1.1 204 No Content
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type | description |
---|---|---|
application/json | RangerRole (JSON) |
GET /roles/roles/{id}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
name | type | description | default | constraints |
---|---|---|---|---|
id | path | long | ||
createNonExistUserGroup | query | false | boolean |
media type | data type |
---|---|
application/json | RangerRole (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerRole (JSON) |
PUT /roles/roles/{id}
Content-Type: application/json
Accept: application/json
{
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
name | type | description |
---|---|---|
serviceName | path |
media type | data type |
---|---|
application/json | GrantRevokeRoleRequest (JSON) |
media type | data type | description |
---|---|---|
application/json | RESTResponse (JSON) |
PUT /roles/roles/grant/{serviceName}
Content-Type: application/json
Accept: application/json
{
"grantOption" : true,
"clientIPAddress" : "...",
"users" : [ "...", "..." ],
"grantor" : "...",
"targetRoles" : [ "...", "..." ],
"requestData" : "...",
"sessionId" : "...",
"grantorGroups" : [ "...", "..." ],
"clusterName" : "...",
"roles" : [ "...", "..." ],
"clientType" : "...",
"groups" : [ "...", "..." ]
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"message" : "...",
"httpStatusCode" : 12345,
"msgDesc" : "...",
"statusCode" : 12345,
"messageList" : [ {
"objectId" : 12345,
"fieldName" : "...",
"message" : "...",
"name" : "...",
"rbKey" : "..."
}, {
"objectId" : 12345,
"fieldName" : "...",
"message" : "...",
"name" : "...",
"rbKey" : "..."
} ]
}
name | type | description |
---|---|---|
name | path | |
execUser | query | |
serviceName | query |
DELETE /roles/roles/name/{name}
Content-Type: */*
...
HTTP/1.1 204 No Content
name | type | description |
---|---|---|
name | path | |
execUser | query | |
serviceName | query |
media type | data type | description |
---|---|---|
application/json | RangerRole (JSON) |
GET /roles/roles/name/{name}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
name | type | description |
---|---|---|
serviceName | path |
media type | data type |
---|---|
application/json | GrantRevokeRoleRequest (JSON) |
media type | data type | description |
---|---|---|
application/json | RESTResponse (JSON) |
PUT /roles/roles/revoke/{serviceName}
Content-Type: application/json
Accept: application/json
{
"grantOption" : true,
"clientIPAddress" : "...",
"users" : [ "...", "..." ],
"grantor" : "...",
"targetRoles" : [ "...", "..." ],
"requestData" : "...",
"sessionId" : "...",
"grantorGroups" : [ "...", "..." ],
"clusterName" : "...",
"roles" : [ "...", "..." ],
"clientType" : "...",
"groups" : [ "...", "..." ]
}
HTTP/1.1 204 No Content
Content-Type: application/json
{
"message" : "...",
"httpStatusCode" : 12345,
"msgDesc" : "...",
"statusCode" : 12345,
"messageList" : [ {
"objectId" : 12345,
"fieldName" : "...",
"message" : "...",
"name" : "...",
"rbKey" : "..."
}, {
"objectId" : 12345,
"fieldName" : "...",
"message" : "...",
"name" : "...",
"rbKey" : "..."
} ]
}
name | type | description |
---|---|---|
user | path |
media type | data type | description |
---|---|---|
application/json | array of string (JSON) |
GET /roles/roles/user/{user}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
...
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type |
---|---|
application/json | boolean (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerRole (JSON) |
PUT /roles/roles/{id}/addUsersAndGroups
Content-Type: application/json
Accept: application/json
...
HTTP/1.1 204 No Content
Content-Type: application/json
{
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type |
---|---|
application/json | array of string (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerRole (JSON) |
PUT /roles/roles/{id}/removeAdminFromUsersAndGroups
Content-Type: application/json
Accept: application/json
...
HTTP/1.1 204 No Content
Content-Type: application/json
{
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
name | type | description | constraints |
---|---|---|---|
id | path | long |
media type | data type |
---|---|
application/json | array of string (JSON) |
media type | data type | description |
---|---|---|
application/json | RangerRole (JSON) |
PUT /roles/roles/{id}/removeUsersAndGroups
Content-Type: application/json
Accept: application/json
...
HTTP/1.1 204 No Content
Content-Type: application/json
{
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}
name | type | description | default | constraints |
---|---|---|---|---|
serviceName | path | |||
clusterName | query | |||
lastActivationTime | query | 0 | long | |
lastKnownRoleVersion | query | -1 | long | |
pluginCapabilities | query | |||
pluginId | query |
media type | data type | description |
---|---|---|
application/json | RangerRoles (JSON) |
GET /roles/secure/download/{serviceName}
Content-Type: */*
Accept: application/json
...
HTTP/1.1 200 OK
Content-Type: application/json
{
"roleVersion" : 12345,
"rangerRoles" : [ {
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
}, {
"groups" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"users" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"options" : {
"property1" : { },
"property2" : { }
},
"createdByUser" : "...",
"roles" : [ {
"name" : "...",
"isAdmin" : true
}, {
"name" : "...",
"isAdmin" : true
} ],
"description" : "...",
"name" : "...",
"guid" : "...",
"isEnabled" : true,
"createTime" : 12345,
"createdBy" : "...",
"updatedBy" : "...",
"id" : 12345,
"updateTime" : 12345,
"version" : 12345
} ],
"roleUpdateTime" : 12345,
"serviceName" : "..."
}