接口说明
面向政企版租户开放登录会话-历史会话接口 业务逻辑:支持通过登录账号/设备名称、时间选择(开始时间和结束时间)分页查询历史登录会话,信息包括:登录账号、租户名称、设备名称、客户端(类型和版本号)、登录时间、已登录时长、登出时间,支持分页查询(单页默认10,最大50)。 限流:根据租户实现用户级别的限流,限制为100次每秒
URL
POST https://ecloud.10086.cn/api/Computer_api/cem_openapi/ccacem/api/v1/operation/loginSession/historyPage
请求参数
Body
|
参数名称
|
类型
|
必填
|
描述
|
|
loginSessionReqDto
|
CcempLoginSessionReqDtos
|
是
|
loginSessionReqDto |
|
userName
|
string
|
否
|
登录账号 |
|
deviceName
|
string
|
否
|
设备名称 |
|
startTime
|
string
|
是
|
开始时间 |
|
endTime
|
string
|
是
|
结束时间 |
|
page
|
string
|
否
|
当前页 |
|
pageSize
|
string
|
否
|
分页大小 |
请求示例
POST https://ecloud.10086.cn/api/Computer_api/cem_openapi/ccacem/api/v1/operation/loginSession/historyPage
{
"userName":"test.test",
"deviceName":"cmcc-PC",
"startTime":"2024-08-08 00:00:00",
"endTime":"2024-08-14 23:59:59",
"page":"1",
"pageSize":"10"
}
返回参数
返回码:200
OK
|
参数名称
|
类型
|
描述
|
|
body
|
CcempLoginSessionRespDto
|
|
|
records
|
<SessionRecords> array
|
成功集合 |
|
clientType
|
string
|
客户端版本类型 |
|
clientVersion
|
string
|
客户端版本号 |
|
deviceName
|
string
|
设备名称 |
|
loginDuration
|
string
|
已登录时长 |
|
loginTime
|
string
|
登录时间 |
|
logoutTime
|
string
|
登出时间 |
|
mopUserName
|
string
|
租户名称 |
|
userName
|
string
|
用户名 |
|
errorCode
|
string
|
|
|
errorMessage
|
string
|
|
|
requestId
|
string
|
|
|
state
|
enum(OK,ERROR,EXCEPTION,FORBIDDEN,REMAINING,TIMEOUT)
|
返回示例
返回码:200
OK
{
"state":"OK",
"body":{
"records":[
{
"userName":"test.test",
"mopUserName":"test",
"deviceName":"cmcc-PC",
"clientType":"linux_x86-64",
"clientVersion":"3.1.3",
"loginTime":"2024-08-08 17:19:20",
"logoutTime":"2024-08-08 17:21:12",
"loginDuration":"1分钟52秒"
}
]
},
"errorCode":"200",
"errorMessage":"",
"requestId":"124861b13e39430797585ba5ed6c9494"
}