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.
Item Description
Status_Display Status Display
RAID_Group_Management RAID Group Management
Volume_Create_Modify Volume - Create / Modify
Volume_Delete_Format Volume - Delete / Format
Host_Interface_Management Host Interface Management
Advanced_Copy_Management Advanced Copy Management
Copy_Session_Management Copy Session Management
Storage_Migration_Management Storage Migration Management
Storage_Management Storage Management
User_Management User Management
Authentication_Role Authentication / Role
Security_Settings Security Setting
Maintenance_Information Maintenance Information
Maintenance_Operation Maintenance Operation
Firmware_Management Firmware Management
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.