Obtaining Session Information
GET /session/{session_id}
Introduction
Obtains the Session information.
Obtains the information about the specified Session ID.
Information for the Sessions that correspond to the Token, which is specified to issue the API command, can be obtained.
Request Examples
This is an example of getting the Session ID and lifetime for Session ID 1000001.
$ curl -i -H "Authorization: Bearer g17e4umvwYoHuhkG7yCSee.." -X GET "https://192.168.1.1:5665/api/v1/session/1000001?fields=lifetime"
Response Examples
{
"session_id": 1000001,
"user_name": "USER#1",
"lifetime": 300
}
Parameters
PATH PARAMETERS
| session_id (required) |
integer Session ID. |
QUERY PARAMETERS
| fields | Array of strings Parameter to display. Only the information of the specified Parameter name (Response Body Parameter) is extracted and retrieved. For details about the specification methods, see Property Filter. |
Responses
If successful, the HTTP status code is 200 (OK) and the response body is returned.
RESPONSE BODY
| session_id | integer Session ID. |
||||||||||||||||||||||||||||||||
| user_name | string The name of User who created this Session. |
||||||||||||||||||||||||||||||||
| lifetime | integer The remaining validity period of the token. The unit is seconds. If a refresh token is not issued, this period is identical to the time remaining before the session is automatically deleted. |
||||||||||||||||||||||||||||||||
| auth_list | Array of strings The privileges held by the User who created this Session.
|
||||||||||||||||||||||||||||||||
| days_to_password_expiration | integer Password expiration date. The unit is days. No response is returned for users whose password policy setting is disabled or whose password validity period is unlimited. If the password has expired, 0 is returned. |

