tencent cloud

DescribeRecentSessionList
最后更新时间:2025-11-13 21:02:25
DescribeRecentSessionList
最后更新时间: 2025-11-13 21:02:25

1. API Description

Domain name for API request: trro.intl.tencentcloudapi.com.

Get the latest device session list

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.

Parameter Name Required Type Description
Action Yes String Common Params. The value used for this API: DescribeRecentSessionList.
Version Yes String Common Params. The value used for this API: 2022-03-25.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
ProjectId Yes String Project id.
PageNumber Yes Integer Page number, beginning from 1.
PageSize Yes Integer Number of entries per page.
DeviceId No String Device id, supports filtering by remote device or on-site device.
StartTime No Integer Start time of the time range. the maximum time range is the last two hours. if not specified or out of range, the start time is calculated as two hours ago.
EndTime No Integer End time of the time range. the maximum time range is the last two hours. if not specified or out of range, the end time is calculated as the current time.

3. Output Parameters

Parameter Name Type Description
Total Integer Total number.
RecentSessionList Array of RecentSessionInfo Conversation list.
Num Integer Number of items on this page.
RequestId String The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.

4. Example

Example1 Example 1

Input Example

POST / HTTP/1.1
Host: trro.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeRecentSessionList
<Common request parameters>

{
    "PageNumber": "1",
    "PageSize": "10",
    "ProjectId": "abcdefg",
    "DeviceId": "dev2",
    "StartTime": "0",
    "EndTime": "1670000000"
}

Output Example

{
    "Response": {
        "RecentSessionList": [
            {
                "LatestUpdateTime": 1650000060,
                "FieldDeviceId": "dev2",
                "RemoteDeviceId": "dev2",
                "Resolution": "1920*1080",
                "SessionId": "abcdefg-50f7-4c60-9c89-e7076c8529a9-0",
                "StartTime": 1650000000
            }
        ],
        "RequestId": "abcdefg-186d-4dc5-9a36-6849446dd921",
        "Total": 1,
        "Num": 1
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
FailedOperation Operation failed.
InternalError Internal error.
InvalidParameter Parameter error.
InvalidParameterValue Parameter value error.
MissingParameter Missing required parameters.
OperationDenied Operation denied.
本页内容是否解决了您的问题?
您也可以 联系销售 提交工单 以寻求帮助。

文档反馈