Get Pending Violation

get

/iam/governance/selfservice/api/v1/policyviolations/{pvid}

Returns the pending violation policy details specified by the policy violation ID.

Request

Supported Media Types
Path Parameters
Query Parameters
  • Attributes to be returned in the result. Comma-separated attributes are accepted. Sample value for attributes is "action, comment, entityType, severity, status". Nested entities cannot be filtered for example the "targetRole, remediatorRole" etc cannot be the attributes which can be returned.
Back to Top

Response

Supported Media Types

200 Response

Successful
Headers
Body ()
Root Schema : PolicyViolationGET
Type: object
Show Source
Nested Schema : fields
Type: array
Show Source
Nested Schema : IDARoleInfo
Type: object
Show Source
Nested Schema : IDAUserInfo
Type: object
Show Source
Nested Schema : Fields
Type: object
Show Source
Nested Schema : LinkDataInstances
Type: object
Show Source

401 Response

Unauthorized

404 Response

Requested entity not found

500 Response

Internal Server Error

Default Response

Unexpected error
Back to Top

Examples

This example retrieves the details for a policy violation. The information shown here is against a pseudo system and serves as a prototype.

cURL Example

curl  -H "Content-Type: application/json"  -X GET  -u username:password  
https://pseudo.com/iam/governance/selfservice/api/v1/policyviolations/D15E3910F42A4626AA8CBA219A
58A478

Example of GET Response Body

The following example shows the contents of the response body in JSON format.

{
    "links": [
        {
            "rel": "self",
            "href": "http://pseudo.com:PORT/iam/governance/selfservice/api/v1/policyviolations/D15E3910
F42A4626AA8CBA219A58A478"
        }
    ],
    "remediatorUser": {
        "links": [
            {
                "rel": "self",
                "href": "http://pseudo.com:PORT/iam/governance/selfservice/api/v1/users/16"
            }
        ],
        "displayName": "Ajay Arora"
    },
    "targetUser": {
        "links": [
            {
                "rel": "self",
                "href": "http://pseudo.com:PORT/iam/governance/selfservice/api/v1/users/23"
            }
        ],
        "displayName": "Beatrix Kiddo"
    },
    "fields": [
        {
            "name": "targetUserEmail",
            "value": "beatrix.kiddo@vision.com"
        },
        {
            "name": "lastDetectedDate",
            "value": "2019-04-10T21:12:16Z"
        },
        {
            "name": "update",
            "value": "2019-04-10T21:12:22Z"
        },
        {
            "name": "targetUserOrganizationName",
            "value": "Vision"
        },
        {
            "name": "remediatorAssignDate",
            "value": "2019-04-10T21:12:22Z"
        },
        {
            "name": "create",
            "value": "2019-04-10T21:12:16Z"
        },
        {
            "name": "action",
            "value": "ASSIGN"
        },
        {
            "name": "remediatorUserDisplayName",
            "value": "Ajay Arora"
        },
        {
            "name": "id",
            "value": "D15E3910F42A4626AA8CBA219A58A478"
        },
        {
            "name": "severity",
            "value": "LOW"
        },
        {
            "name": "policyName",
            "value": "policy1"
        },
        {
            "name": "targetUserLogin",
            "value": "BKIDDO"
        },
        {
            "name": "targetUserId",
            "value": "23"
        },
        {
            "name": "targetUserManagerName",
            "value": "Ajay Arora"
        },
        {
            "name": "remediatorUserId",
            "value": "16"
        },
        {
            "name": "updateById",
            "value": "1"
        },
        {
            "name": "policyId",
            "value": "1D32B7C4A01E4CE58542EFBAB015C91A"
        },
        {
            "name": "detectionCount",
            "value": 1
        },
        {
            "name": "name",
            "value": "F638750B00294318868F2F92FC54EB7A"
        },
        {
            "name": "createById",
            "value": "4"
        },
        {
            "name": "status",
            "value": "ASSIGNED"
        },
        {
            "name": "targetUserDisplayName",
            "value": "Beatrix Kiddo"
        },
        {
            "name": "entityType",
            "value": "PolicyViolation"
        }
    ]
}
Back to Top