Return a specific Access Policy
get
/iam/governance/adminservice/api/v1/accesspolicies/{policyId}
Returns a specific Access Policy based on Access Policy Id
Request
Path Parameters
-
policyId: integer
The Access Policy Id
Response
Supported Media Types
- application/json
200 Response
Access Policy
Root Schema : accessPolicy
Type:
objectAccess Policy details
Show Source
-
deniedApplications(optional):
array deniedApplications
Details of Denied Application
-
description(optional):
string
Description of the Access Policy
-
name(optional):
string
Name of the Access Policy
-
owner(optional):
object owner
Owner
-
priority(optional):
string
Priority of the Access Policy
-
provisionedApplications(optional):
array provisionedApplications
Details of Provisioned Application
-
retrofit(optional):
boolean
Nested Schema : owner
Type:
objectOwner
Show Source
-
name(optional):
string
Owner login id for example xelsysadm
-
type(optional):
string
Allowed Values:
[ "USER", "ROLE" ]Type of Owner. Valid values are USER/ROLE
Nested Schema : deniedApplications
Type:
Show Source
object-
name(optional):
string
Name of the Denied Application
Nested Schema : provisionedApplications
Type:
Show Source
object-
childobjects(optional):
array childobjects
-
constraint(optional):
string
Allowed Values:
[ "DISABLE", "REVOKE" ]Constraint. Valid values are DISABLE/REVOKE -
general(optional):
object general
Additional Properties Allowed: additionalPropertiesParent form details
-
name(optional):
string
Name of the Provisioned Application
-
neor(optional):
boolean
Default Value:
falseKeep Account Active if entitlement exists outside the role
Nested Schema : childobject
Type:
Show Source
object-
description(optional):
string
Label of the child form.
-
records(optional):
array records
Child form details
Nested Schema : records
Type:
arrayChild form details
Show Source
-
Array of:
object items
Additional Properties Allowed: additionalProperties
400 Response
Bad Request
500 Response
Internal Server Error
Examples
The following example shows how to return a specific access policy by submitting a GET request on the REST resource using cURL. The information shown here is against a pseudo system and serves as a prototype.
curl -u username:password -H "X-Requested-By:<anyvalue>" -X GET "http://myhost.pseudo.com:14000/iam/governance/adminservice/api/v1/accesspolicies/5"
Example of the Response Body
The following example shows the contents of the response body in JSON format:
{
"links": [
{
"rel": "self",
"href": "http://myhost.pseudo.com:14000/iam/governance/adminservice/api/v1/accesspolicies/1"
}
],
"id": "1",
"name": "AP_1615537233845",
"description": "AP_Desc_1615537233845",
"priority": "1",
"retrofit": true,
"owner": {
"type": "USER",
"displayname": "System Administrator",
"name": "XELSYSADM"
},
"provisionedApplications": [
{
"id": "2",
"name": "VisionEmployeesDomain",
"constraint": "REVOKE",
"neor":false,
"general": {
"Organization Name": "9~OU=employees,OU=Vision,DC=adlrg12c,DC=us,DC=pseudo,DC=com"
},
"childobjects": [
{
"id": "10",
"description": "Assigned Groups Form",
"records": [
{
"Group Name": "9~CN=adentitlement1,OU=Vision,DC=adlrg12c,DC=us,DC=pseudo,DC=com"
}
]
}
]
}
],
"deniedApplications": []
}