查询当前连接会话

接口说明

面向政企版租户开放连接会话-当前会话接口 业务逻辑:支持通过登录账号/电脑名称/设备名称分页查询当前连接会话,信息包括:登录账号、租户名称、设备名称、客户端、登录时间、电脑ID、电脑名称、会话开始时间、已连接时长、操作,支持分页查询(单页默认10,最大50)。 限流:根据租户实现用户级别的限流,限制为100次每秒


推荐使用API Explorer调试

API Explorer支持接口在线可视化调用,同时自动生成动态代码示例,搭配OpenAPI SDK无需计算签名实现接口快速集成。

URL

POST https://ecloud.10086.cn/api/Computer_api/cem_openapi/ccacem/api/v1/operation/connectSession/activePage

请求参数

Body

参数名称
类型
必填
描述
machineConnectSessionReqDto
CcempMachineConnectSessionReqDto
是

machineConnectSessionReqDto

userName
string
否

登录账号

machineName
string
否

电脑名称

deviceName
string
否

设备名称

startTime
string
是

开始时间

endTime
string
是

结束时间

page
integer(int32)
是

当前页数

pageSize
integer(int32)
是

每页个数

请求示例

POST https://ecloud.10086.cn/api/Computer_api/cem_openapi/ccacem/api/v1/operation/connectSession/activePage
{
	"page":"1",
	"pageSize":"10"
}

返回参数

返回码:200
OK
参数名称
类型
描述
body
CcempMachineConnectInfoRespDto
records
<MachineConnectInfo> array

会话列表

clientType
string

客户端类型

clientVersion
string

客户端版本

connectedDuration
string

已连接时长

deviceName
string

设备名称

deviceUid
string

设备Id

disConnectReason
string

断开原因

endTime
string

会话结束时间

isConnect
string

连接状态

loginTime
string

登录时间

machineId
string

电脑ID

machineName
string

电脑名称

mopUserName
string

租户名称

orderSourceCode
string

所属渠道code

resourceTypeId
integer(int64)

规格Id

startTime
string

会话开始时间

tenantId
integer(int64)

租户Id

userId
string

用户Id

userName
string

用户名

total
integer(int32)

总会话数

errorCode
string
errorMessage
string
requestId
string
state
enum(OK,ERROR,EXCEPTION,FORBIDDEN,REMAINING,TIMEOUT)

返回示例

返回码:200
OK
{
	"body":{
		"records":[
			{
				"tenantId":2,
				"userId":"1774699247139078145",
				"mopUserName":"test",
				"deviceUid":"M70DGTHN",
				"machineId":"e877c325-b962-4951-b5bc-4df8f51302ff",
				"orderSourceCode":"0",
				"deviceName":"DESKTOP-UJ6OAGM",
				"userName":"xxftest04",
				"machineName":"麒麟-7.24.30-4c4g",
				"clientType":"pc_windows",
				"clientVersion":"3.1.2",
				"loginTime":"2024-10-11 11:19:01",
				"startTime":"2024-10-11 13:28:36",
				"endTime":"1970-01-01 08:00:00",
				"connectedDuration":"223天5小时59分钟20秒",
				"disConnectReason":"",
				"isConnect":"1",
				"resourceTypeId":152,
				"province":"000",
				"city":"0000"
			},
			{
				"tenantId":2,
				"userId":"1846807290193580034",
				"mopUserName":"test",
				"deviceUid":"PC2LCWST",
				"machineId":"71570661-0357-480e-8d6f-282e7626e1ab",
				"orderSourceCode":"0",
				"deviceName":"A25708134",
				"userName":"ZX-test-10-17",
				"machineName":"重装镜像",
				"clientType":"pc_windows",
				"clientVersion":"3.3.6",
				"loginTime":"2024-10-21 10:27:12",
				"startTime":"2024-10-21 10:27:29",
				"endTime":"1970-01-01 08:00:00",
				"connectedDuration":"213天9小时27秒",
				"disConnectReason":"",
				"isConnect":"1",
				"resourceTypeId":33,
				"province":"000",
				"city":"0000"
			}
		],
		"total":"2"
	},
	"errorCode":"200",
	"errorMessage":"",
	"requestId":"42f034a774aabf4a"
}
本文档内容整理自移动云官方帮助中心(查看原文),仅供参考。