Difference between revisions of "REST API:getActiveSessions"

From AgileApps Support Wiki
(Created page with "Retrieve all active sessions of a user ;Method:GET ;URI:<tt>{{platformURL}}/rest/httpSessionManagement/active</tt> ;Request: :<syntaxhighlight lang="xml" enclose="div">{ "pl...")
 
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
;Method:GET
;Method:GET
;URI:<tt>{{platformURL}}/rest/httpSessionManagement/active</tt>
;URI:<tt>{{platformURL}}/rest/httpSessionManagement/active</tt>
;Request:
:<syntaxhighlight lang="xml" enclose="div">{
"platform": {
    "session": [
        {
        "id": "f8f8dc9fd2fa4303b02fce4fbbd794a1"  //Session Record-id retrieved from active endpoint
        },
        {
        "id": "bacc3234685c4ae49727809d503ce1c9"
        }
    ]}}
</syntaxhighlight>


;Response:
;Response:
:<syntaxhighlight lang="xml" enclose="div">{
:<syntaxhighlight lang="xml" enclose="div">{
"platform": {
    "platform": {
         "message": {
         "message": {
             "code": "0",
             "code": "0",
             "description": "Success"
             "description": "Success"
         }
         },
        "recordCount": "2",
        "session": [
            {
                "customerId": "14******67",
                "dateCreated": "2023-11-14T08:51:00.000Z",
                "id": "ce37f52efb**********6c2cb23f76a4",
                "ipAddress": "0:0:0:0:0:0:0:1",
                "serverName": "3fd63a16**********459328e40b12a9",
                "sessionDetails": "PostmanRuntime/7.35.0",
                "sessionId": "A4B1CAFC**********6BAB7FF83EA855",
                "sessionType": "0",
                "status": "0",
                "statusDate": "2024-12-14T08:51:00.000Z",
                "userId": "573a0b840**********c72624bc821c5",
                "userName": "device 002"
            },
            {
                "customerId": "14******67",
                "dateCreated": "2023-11-14T08:52:00.000Z",
                "id": "75f2e91e60**********78c44374d279",
                "ipAddress": "127.0.0.1",
                "serverName": "3fd63a16**********59328e40b12a9",
                "sessionDetails": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0",
                "sessionId": "89547243**********C84BD415C30313",
                "sessionType": "0",
                "status": "0",
                "statusDate": "2024-12-14T08:52:00.000Z",
                "userId": "573a0b840**********c72624bc821c5",
                "userName": "admin 002"
            }
        ]
     }
     }
}
}
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 09:20, 9 January 2024

Retrieve all active sessions of a user

Method
GET
URI
https://{yourDomain}/networking/rest/httpSessionManagement/active
Response
{
    "platform": {
        "message": {
            "code": "0",
            "description": "Success"
        },
        "recordCount": "2",
        "session": [
            {
                "customerId": "14******67",
                "dateCreated": "2023-11-14T08:51:00.000Z",
                "id": "ce37f52efb**********6c2cb23f76a4",
                "ipAddress": "0:0:0:0:0:0:0:1",
                "serverName": "3fd63a16**********459328e40b12a9",
                "sessionDetails": "PostmanRuntime/7.35.0",
                "sessionId": "A4B1CAFC**********6BAB7FF83EA855",
                "sessionType": "0",
                "status": "0",
                "statusDate": "2024-12-14T08:51:00.000Z",
                "userId": "573a0b840**********c72624bc821c5",
                "userName": "device 002"
            },
            {
                "customerId": "14******67",
                "dateCreated": "2023-11-14T08:52:00.000Z",
                "id": "75f2e91e60**********78c44374d279",
                "ipAddress": "127.0.0.1",
                "serverName": "3fd63a16**********59328e40b12a9",
                "sessionDetails": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/115.0",
                "sessionId": "89547243**********C84BD415C30313",
                "sessionType": "0",
                "status": "0",
                "statusDate": "2024-12-14T08:52:00.000Z",
                "userId": "573a0b840**********c72624bc821c5",
                "userName": "admin 002"
            }
        ]
    }
}