Create And Run Role Mining Task To Discovery Roles
post
/oiri/api/v1/tasks/.discoverRoles
Create a job with Status=READY, sourceID and sourceName as null.
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Response
Supported Media Types
- application/json
200 Response
OK
Root Schema : JobDetails
Type:
Show Source
object-
createdBy(optional):
string
-
createdDate(optional):
string
-
description(optional):
string
-
finishedData(optional):
string
-
id(optional):
string
-
input(optional):
object input
-
lastUpdatedDate(optional):
string
-
message(optional):
string
-
name(optional):
string
-
output(optional):
string
-
sourceId(optional):
string
-
sourceName(optional):
string
-
startedDate(optional):
string
-
status(optional):
string
-
type(optional):
string
Examples
The following example shows how to create and run a role mining task to discover candidate roles.
curl -X POST\ -H "Accept: application/json"\ -H "Content-Type: application/json"\ -H "Authorization: Bearer $token"\ "http://localhost:port/oiri/api/v1/tasks/.discoverRoles" -d
Example of the Request Body
The following is an example of the request body in JSON format.
{
name: "SampleTask",
description: "SampleTask desc",
criteria: [{type: "user", filter: "organization in (\"VisCertOrg\")"}],
candidateRoleCountIndicator: 3,
candidateRolePrefix: "cr"
}
Example of the Response Body
The following is an example of the response body in JSON format.
{
"id": "1",
"sourceId": null,
"sourceName": null,
"name": "SampleTask",
"description": "SampleTask desc",
"type": "ROLE_MINING",
"status": "READY",
"message": null,
"createdDate": "2021-04-21T09:50:41.782279Z",
"createdBy": "RFROST",
"lastUpdatedDate": "2021-04-21T09:50:41.782279Z",
"startedDate": null,
"finishedData": null,
"input": {
"name": "SampleTask",
"description": "SampleTask desc",
"candidateRolePrefix": "cr",
"criteria": [
{
"type": "user",
"filter": "organization in (\"VisCertOrg\")"
}
],
"candidateRoleCountIndicator": 3
},
"output": null
}