Restore discarded candidate role
post
/oiri/api/v1/tasks/{taskId}/candidate-roles/{candidateRoleId}/restore
Request
Path Parameters
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
OK
Root Schema : CandidateRoleDTO
Type:
Show Source
object-
applicationCount(optional):
integer
-
clusterId(optional):
integer
-
confidence(optional):
number
-
createdBy(optional):
string
-
createdDate(optional):
string
-
description(optional):
string
-
entitlementCount(optional):
integer
-
entitlementCoverage(optional):
integer
-
id(optional):
string
-
jobId(optional):
string
-
lastModifiedDate(optional):
string
-
misAlignedEntitlementCount(optional):
integer
-
misAlignedUserCount(optional):
integer
-
name(optional):
string
-
status(optional):
string
-
totalEntitlementCount(optional):
integer
-
totalUserCount(optional):
integer
-
userCount(optional):
integer
-
userCoverage(optional):
integer
Examples
The following example shows how to restore a discarded candidate role.
curl -X POST\ -H "Accept: application/json"\ -H "Authorization: Bearer $token"\ "http://localhost:port/oiri/api/v1/tasks/70561adbfdd7474290b77d5903210c6b/candidate-roles/f80c8560a3b44fc196992de05f26950b/restore"
Example of the Response Body
The following is an example of the response body in JSON format.
{
"id": "f80c8560a3b44fc196992de05f26950b",
"name": null,
"description": "cr_ Candidate Role for the Cluster : 7",
"jobId": "70561adbfdd7474290b77d5903210c6b",
"clusterId": 7,
"status": "READY",
"userCount": 1,
"entitlementCount": 4,
"applicationCount": 3,
"totalUserCount": 41,
"totalEntitlementCount": 37,
"misAlignedUserCount": 0,
"misAlignedEntitlementCount": 0,
"userCoverage": 50,
"entitlementCoverage": 50,
"confidence": 100,
"createdDate": "2021-04-22T12:50:51.833+00:00",
"createdBy": "RFROST",
"lastModifiedDate": "2021-04-23T10:12:13.746+00:00"
}