您可以使用 GetLoginSessionInfo 方法返回登录身份验证会话对登录 Shell 和 TUI 均有效的时间段。
此方法没有任何输入参数。
此方法具有以下返回值:
名称 | 说明 | 类型 |
---|---|---|
loginSessionInfo | 包含身份验证的有效期的对象。返回的可能对象:
|
JSON 对象 |
此方法的请求类似于以下示例:
{ "method": "GetLoginSessionInfo", "params": {}, "id" : 1 }
此方法返回类似于以下示例的响应:
{ "id": 1, "result" : { "loginSessionInfo" : { "timeout" : "30:00" } } }