Get Request Based on Request ID

get

/iam/governance/selfservice/api/v1/requests/{reqid}

Returns the request details of the specified request id. The attributes that are to be returned can be specified as part of the query parameter named "fields". For example: The URI to get the request type and status attributes only for a particular request is /requests/{reqid}?fields=reqType, reqStatus. The attributes are to be spcified in a Comma-separated list.

Request

Supported Media Types
Path Parameters
Query Parameters
  • Attributes to be returned in the result. RequestId attribute is mandatory in the return list. Comma-separated attributes are accepted.
Back to Top

Response

Supported Media Types

200 Response

Successful
Headers
Body ()
Root Schema : ReqGetResponse
Type: object
Show Source
Nested Schema : UserRequest
Type: object
Show Source
Nested Schema : childRequests
Type: array
Show Source
Nested Schema : reqBeneficiaryList
Type: array
Show Source
Nested Schema : reqTargetEntities
Type: array
Show Source
Nested Schema : Requester
Type: object
Show Source
Nested Schema : requestTaskDetails
Type: array
Show Source
Nested Schema : childRequests
Type: object
Show Source
Nested Schema : LinkDataInstances
Type: object
Show Source
Nested Schema : RequestBeneficiary
Type: object
Show Source
Nested Schema : reqTargetEntity
Type: object
Show Source
Nested Schema : AppFormData
Type: object
Show Source
Nested Schema : requestTaskDetails
Type: object
Show Source
Nested Schema : history
Type: object
Show Source
Nested Schema : currentApprovers
Type: array
Show Source
Nested Schema : futureApprovers
Type: array
Show Source
Nested Schema : previousApprovers
Type: array
Show Source
Nested Schema : Approvers
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 all the information for a given request 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/requests/12

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/iam/governance/selfservice/api/v1/requests/12"
        }
    ],
    "id": "12",
    "reqStatus": "Request Completed",
    "requester": {
        "name": "requesterId",
        "value": "17",
        "link": {
            "rel": "self",
            "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/17"
        }
    },
    "reqCreatedOn": "2019-03-14T18:35:19Z",
    "reqExpireOn": "2019-03-14T18:54:57Z",
    "reqType": "Modify User Profile",
    "reqBeneficiaryList": [
        {
            "links": [
                {
                    "rel": "self",
                    "href": "http://pseudo.com/iam/governance/selfservice/api/v1/users/17"
                }
            ],
            "id": "17"
        }
    ],
    "reqTargetEntities": [],
    "reqModifiedOnDate": "2019-03-14T18:54:57Z",
    "requestTaskDetails": [
        {
            "title": "Default operational level approval for Request ID 12",
            "history": {
                "previousApprovers": [
                    {
                        "stage": "defaultOperationalApproval.approvalTask.assignee",
                        "status": "APPROVE",
                        "approvers": "SYSTEM ADMINISTRATORS",
                        "acquiredBy": "sysadmin",
                        "stageIndex": "3",
                        "updatedDate": "2019-03-14T18:54:56Z"
                    }
                ],
                "currentApprovers": [
                    {
                        "stage": "defaultOperationalApproval.approvalTask.assignee",
                        "status": "COMPLETED",
                        "approvers": ""
                    }
                ],
                "futureApprovers": []
            }
        }
    ],
    "childRequests": []
}
Back to Top