Search all candidate roles
post
/oiri/api/v1/candidate-roles/.search
Request
There are no request parameters for this operation.
Supported Media Types
- application/json
Response
Supported Media Types
- application/json
200 Response
OK
Nested 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 search all candidate roles.
curl -X POST\ -H "Accept: application/json"\ -H "Content-Type: application/json"\ -H "Authorization: Bearer $token"\ "http://localhost:port/oiri/api/v1/candidate-roles/.search" -d
Example of the Request Body
The following is an example of the request body in JSON format.
{"page":
{"offset":0,
"limit":10},
"sort":
{"sortBy":"createdDate",
"sortOrder":"DESC"},
"searchFilters":"status in (\"READY\")"}
Example of the Response Body
The following is an example of the response body in JSON format.
{
"id": "1",
"name": null,
"description": "cr_ Candidate Role for the Cluster : 1",
"jobId": "3292f90720af4ae3be8620bd9ca62c39",
"clusterId": 1,
"status": "READY",
"userCount": 11,
"entitlementCount": 9,
"applicationCount": 3,
"totalUserCount": 11,
"totalEntitlementCount": 9,
"misAlignedUserCount": 0,
"misAlignedEntitlementCount": 0,
"userCoverage": 50,
"entitlementCoverage": 50,
"confidence": 100,
"createdDate": "2021-04-21T11:11:21.544+00:00",
"createdBy": "RFROST",
"lastModifiedDate": "2021-04-21T11:11:21.544+00:00"
}
]
}