usersession/sessiondetails

API Name

usersession/sessiondetails

Description

Gets the session details for passed instance.

REST Methods

GET

Precondition

Server Manager Console must be running.

Input Params

TOKEN: The TOKEN Header returned as a response to the /authenticate Server Manager REST API Call.

TOKEN: The TOKEN Cookie returned as a response to the /authenticate Server Manager REST API Call.

AUTHORIZATION: The Base64 encoded Basic username:password combination necessary for Authentication.

instanceName: The Managed Instance Name.

agentHostName: The Agent Host Name for instance.

jdeHome: The Agent jde Home for instance.

Sample Request

curl --location 'https://ems4296.ad1.fusionappsdphx1.oraclevcn.com:9016/manage/mgmtrestservice/usersession/sessiondetails?instanceName=tqa_926_lnx_jas_ems4071_23512&agentHostName=ems4071.ad1.fusionappsdphx1.oraclevcn.com&jdeHome=%2Fslot%2Fems15587%2Foracle%2Fjde_agent_web%2FSCFHA' \

--header 'Authorization: Basic amRlX2FkbWluOmpkZV9hZG1pbg==' \

--header 'Cookie: SMCONSOLE_SSID=tVVuWZ_H65B1JOWD_OZLJKCAFupJWqHFGVxqixAlyKhm1iL9ZDh7!829478494'

Return

HTTP status 200 is returned.

Sample Response

[

{

"displayType": "HTML",

"loginTime": "1724133147789",

"dnsName": "10.69.108.252",

"userEnvironment": "JDV920",

"agentName": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36",

"sessionID": "811762597378768896",

"userName": "JDE",

"idleTime": "53011",

"remoteEnvironments": "[Ljava.lang.String;@375d8232"

}

]

Exception

302: Found the Managed Instance with the passed in Instance Name.

404: Unable to find the Managed Instance with the passed in Instance Name.

403: Forbidden Status Code is returned if the Authentication information passed with the Request is not valid.