List entitlements for a candidate role
post
/oiri/api/v1/tasks/{taskId}/candidate-roles/{candidateRoleId}/entitlements/.search
Request
Path Parameters
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 list the entitlements for a candidate role.
curl -X POST\ -H "Accept: application/json"\ -H "Content-Type: application/json"\ -H "Authorization: Bearer $token"\ "http://localhost:port/oiri/api/v1/tasks/70561adbfdd7474290b77d5903210c6b/candidate-roles/97d40d053dd74a45a6e944f45cbfae6a/entitlements/.search"
Example of the Response Body
The following is an example of the response body in JSON format.
{
"limit": 10,
"offset": 0,
"recordCount": 5,
"count": 5,
"hasMore": false,
"items": [
{
"entitlementKey": "G141",
"entitlementDisplayName": "CN=adbienta11,OU=grps,OU=robert_bi_test,DC=host123,DC=us,DC=example,DC=com",
"applicationName": "BoKS_QA_latest",
"usage": 83.33,
"misalignedCount": null,
"extEntitlementId": "141"
},
{
"entitlementKey": "G142",
"entitlementDisplayName": "CN=adbienta12,OU=grps,OU=robert_bi_test,DC=host123,DC=us,DC=example,DC=com",
"applicationName": "BoKS_QA_latest",
"usage": 83.33,
"misalignedCount": null,
"extEntitlementId": "142"
},
{
"entitlementKey": "G202",
"entitlementDisplayName": "Guest",
"applicationName": "Orahub",
"usage": 66.67,
"misalignedCount": null,
"extEntitlementId": "202"
},
{
"entitlementKey": "G184",
"entitlementDisplayName": "Toshiba",
"applicationName": "Corp Laptop",
"usage": 83.33,
"misalignedCount": null,
"extEntitlementId": "184"
},
{
"entitlementKey": "G206",
"entitlementDisplayName": "Users",
"applicationName": "JIRA",
"usage": 83.33,
"misalignedCount": null,
"extEntitlementId": "206"
}
]
}