GET /sessions
Use this method to return information about current sessions with Lenovo XClarity Administrator.
Authentication
Authentication with username and password is required.
Request URL
GET https://{management_server_IP}/sessions
Query parameters
None
Response codes
Code | Description | Comments |
---|---|---|
200 | OK | The request completed successfully. |
400 | Bad Request | A query parameter or request attribute is missing or not valid, or the operation is not supported. A descriptive error message is returned in the response body. |
500 | Internal Server Error | An internal error occurred. A descriptive error message is returned in the response body. |
Response body
Attributes | Type | Description | ||
---|---|---|---|---|
response | Array of objects | Information about each user session | ||
Address | Boolean | IP address of the server from which the user is connected | ||
authenticationServer | String | IP address of the authentication server | ||
created | String | Date and time when the user logged in and the session was started | ||
id | String | Session ID | ||
idleFor | String | Amount of time, in seconds, that the session has not had activity | ||
isOwnSession | Boolean | This can be one of the following values.
| ||
lastAccessed | String | Date and time when the user performed the last action | ||
UserId | String | User ID | ||
result | String | Results of the request. This can be one of the following values.
| ||
messages | Array | Information about one or more messages | ||
explanation | String | Additional information to clarify the reason for the message | ||
id | String | The message identifier of a returned message | ||
recovery | Array | Recovery information | ||
text | String | User actions that can be taken to recover from the event | ||
URL | String | Link to the help system for more information, if available | ||
text | String | Message text associated with the message identifier |
The following example is returned if the request is successful.
{
"result": "success",
"response": [{
"Address": "10.38.99.166",
"authenticationServer": "127.0.0.1",
"created": "2019-01-25T16:27:07Z",
"id": "1vze81e09gmmk1tctgb9of8y39",
"idleFor": "0",
"isOwnSession": true,
"lastAccessed": "2019-01-25T16:27:16Z",
"UserId": "ADMIN",
},
{
"Address": "10.38.111.145",
"authenticationServer": "127.0.0.1",
"created": "2016-05-04T20:02:44Z",
"id": "1xarpu7b3ksk23hj89jxo9y12",
"idleFor": "50",
"isOwnSession": true,
"lastAccessed": "2016-05-07T20:02:52Z",
"UserId": "JOE"
}],
"messages": [{
"id": "FQXHMSE0001I",
"text": "The request completed successfully.",
"recovery": {
"text": "Information only. No action is required.",
"URL": ""
},
"explanation": ""
}]
}
Give documentation feedback