Viewing and closing web sessions
Overview
Displays open web sessions and allows you to force them to be closed by different requests.
Requests
HTTP verb | Endpoint | Description |
---|---|---|
|
|
|
|
|
|
|
|
General query parameters
These parameters are passed in the query string portion of the URL (?param=value
) for GET and DELETE requests, and in the case of POST requests, in the body of the request.
Parameters are used to limit the application area of the request.
Are optional and may not be available.
Name | Type | Description |
---|---|---|
|
|
A list of site names or a string with one of the special values in the format JSON. For example |
Retrieve a list of open web sessions.
Returns the list of open web sessions on the current site or on the site(s) specified in the request.
Request
There are no additional parameters. Only the general filter by sites is applied.
GET /rest/v1/master/master/logicalroles/ws/sessions?sites=["SITE1"] HTTP/1.1
Response
Contains a list of open web sessions.
Name | Description |
---|---|
|
Active |
|
Web Session Domain. |
|
Web session user login in the domain. |
|
Web Session ID. |
|
Web Session Type. |
|
Web Session Site. |
|
Remaining web session lifetime in sec. |
|
The user ID of the web session in the domain. |
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
[
{
"domain": "master.domain",
"login": "curl",
"session_id": "a1cd9a88-0176-9a15-d1c0-e0d55e0cd303",
"session_type": "http",
"site": "central",
"ttl": 43187,
"user_id": "32328e08-016c-f61d-4ef4-e0d55e0cd303"
},
{
"domain": "master.domain",
"login": "adminma",
"session_id": "0f274f6b-0176-99e4-5ca7-e0d55e0cd303",
"session_type": "http",
"site": "central",
"ttl": 39946,
"user_id": "37eca732-016d-2962-dbfa-e0d55e0cd303"
},
{
"domain": "master.domain",
"login": "adminma",
"session_id": "16d72c4c-0176-99e7-5545-e0d55e0cd303",
"session_type": "http",
"site": "central",
"ttl": 40141,
"user_id": "37eca732-016d-2962-dbfa-e0d55e0cd303"
},
{
"connections": [
{
"conn_id": "5476d54a-0176-9a16-92a0-e0d55e0cd303",
"is_pid_alive": true,
"node": "ws1@192.168.0.32",
"pid": "<0.11647.54>"
}
],
"domain": "master.domain",
"login": "adminma",
"session_id": "16d72c4c-0176-99e7-5545-e0d55e0cd303",
"session_type": "websocket",
"site": "central",
"ttl": 40141,
"user_id": "37eca732-016d-2962-dbfa-e0d55e0cd303"
}
]
Closing all web sessions of a user in the domain
Closes all web sessions of the user in the domain except the session used in the request.
Request
The request may contain additional coverage parameters.
Name | Type | Description |
---|---|---|
|
|
Action. The field must contain the value |
|
|
The domain for closing sessions. |
|
|
User to close sessions. Accepts either the |
POST /rest/v1/master/logicalroles/ws/sessions HTTP/1.1
Content-Type: application/json; charset=utf-8
{
"action": "logout",
"domain": "master.domain",
"user": "admin",
"sites": "all"
}
Closing a single web session
Closes the web session with the specified identifier.
Request
The request may contain additional coverage parameters.
DELETE /rest/v1/master/logicalroles/ws/sessions/51e6cad2-0176-8f8e-a432-e0d55e0cd303?sites="all" HTTP/1.1