Sessions (sessions)

Requests

HTTP verb Endpoint Description

GET

/rest/v1/iam/users/<UserId>/sessions

Getting the list of user sessions

CLEAR

/rest/v1/iam/users/<UserId>/sessions

Clearing user sessions

DELETE

/rest/v1/iam/users/<UserId>/sessions/<SessId>

Deleting a specific user session

Getting the list of user sessions

Returns a JSON list of session identifiers of the specified user.

Request

Example request
GET /rest/v1/iam/users/e7adf0aa-05b7-8163-948c-3392a9660db9/sessions HTTP/1.1

Response

Example response
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

[
  "f7666e79-0197-3a88-a437-7cd30a921f58"
]

Clearing user sessions

Deletes all discovered sessions of the specified user. Always returns a 204 response, even if there are no sessions or the user is specified incorrectly.

Request

Example request
CLEAR /rest/v1/iam/users/e7adf0aa-05b7-8163-948c-3392a9660db9/sessions HTTP/1.1

Response

HTTP/1.1 204 No Content

Deleting a specific user session

Deletes the specified session of the specified user. If the session is not found or does not belong to the user specified in the request, returns an error.

Request

Example request
DELETE /rest/v1/iam/users/e7adf0aa-05b7-8163-948c-3392a9660db9/sessions/f7666e79-0197-3a88-a437-7cd30a921f58 HTTP/1.1

Response

HTTP/1.1 204 No Content