API v2: Session Last Activity ๐ยถ
Data Structuresยถ
Attribute |
Type |
Required |
Description |
|---|---|---|---|
|
string |
yes |
ID of the session. Read-only. |
|
number |
Indicates how many seconds have passed since the sessionโs last activity. Read-only. |
|
|
string |
The absolute timestamp of the sessionโs last activity, formatted according to RFC 3339. |
|
|
boolean |
yes |
Indicates whether the sessionโs last activity time is unavailableโeither because the session has ended or is running on a different node. Read-only. |
Retrieve Available Attributes of the SessionActivityModelยถ
Request
Method |
|
Path |
|
GET /api/v2/objspec/session_terminate
Example Request
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.0.214.98/api/v2/objspec/session_terminate'
Get Get Session Last Activityยถ
Request
Method |
|
Path |
|
GET /api/v2/session/<session_id>/last_activity
Example Request
curl -s -k -X GET \
-H 'Authorization: sgfeea6jsaz4mum9su8w6' \
'https://10.31.92.108/api/v2/session/4665729213955833864/last_activity'
Response
{
"last_activity_age": 6,
"last_activity_at": "2025-05-14T13:32:43.819802+00:00",
"unavailable": false,
"result": "success"
}
Response if the session has ended
{
"last_activity_age": null,
"last_activity_at": null,
"unavailable": true,
"result": "success"
}