Fetch the details of existing session

put

https://oaainstall-host/risk-analyzer/session/v1/fetchsessionsecurely

Session details are fetched for the given request id.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/xml ()
Root Schema : schema
Type: object
RequestId present in the request body.
Show Source
Request Body - application/json ()
Root Schema : schema
Type: object
RequestId present in the request body.
Show Source
Back to Top

Response

Supported Media Types

200 Response

Retrieve user session data
Body ()
Root Schema : StatusResponse
Type: object
Status information for API call
Show Source
Nested Schema : SessionUserData
Type: object
user related data
Show Source

400 Response

Invalid input
Body ()
Root Schema : StatusResponse
Type: object
Status information for API call
Show Source
Nested Schema : SessionUserData
Type: object
user related data
Show Source

401 Response

Unauthorized

500 Response

Internal server error

503 Response

Service Unavailable
Back to Top

Examples

The following example shows a sample request and response for retrieving session details for a specific request ID.

cURL Command to Fetch the Session Details in JSON Format

curl --location --request PUT '<RISK>/risk-analyzer/session/v1/fetchsessionsecurely' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic <Base64Encoded(<username>:<password>)>' \
--data '{
    "requestId":"96eb744b-b84e-4c13-8b78-06b64ad81d94"
}'

Sample Response in JSON Format

{
    "status": true,
    "sessionId": "96eb744b-b84e-4c13-8b78-06b64ad81d94",
    "userData": {
        "loginName": "testuser",
        "groupName": "default",
        "userId": "testuser"
    }
}

cURL Command to Fetch the Session Details in XML Format

curl --location --request PUT '<RISK>/risk-analyzer/session/v1/fetchsessionsecurely' \
--header 'Content-Type: application/xml' \
--header 'Accept: application/xml' \
--header 'Authorization: Basic <Base64Encoded(<username>:<password>)>' \
--data '
<?xml version="1.0" encoding="UTF-8" ?>
<RequestData>
	<requestId>96eb744b-b84e-4c13-8b78-06b64ad81d94</requestId>
</RequestData>'

Sample Response in XML Format

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<StatusResponse>
	<status>true</status>
	<sessionId>96eb744b-b84e-4c13-8b78-06b64ad81d94</sessionId>
	<userData>
		<loginName>testuser</loginName>
		<groupName>default</groupName>
		<userId>testuser</userId>
	</userData>
</StatusResponse>
Back to Top