Search all candidate roles

post

/oiri/api/v1/candidate-roles/.search

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : page
Type: object
Show Source
Nested Schema : sort
Type: object
Show Source
Back to Top

Response

Supported Media Types

200 Response

OK
Body ()
Root Schema : CandidateRoleListResponse
Type: object
Show Source
Nested Schema : candidateRoles
Type: array
Show Source
Nested Schema : CandidateRoleDTO
Type: object
Show Source
Back to Top

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"
}
]
}
Back to Top