tencent cloud

APIs

DescribeRecordFile

下载
聚焦模式
字号
最后更新时间: 2026-10-26 11:48:08

1. API Description

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

This API is used to query the device cloud recording timeline information, which is the cloud storage video recording after setting a recording schedule for video upload to cloud.

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: DescribeRecordFile.
Version Yes String Common Params. The value used for this API: 2023-05-17.
Region Yes String Common Params. For more information, please see the list of regions supported by the product.
DeviceId Yes String Device ID to which the channel belongs
ChannelId Yes String Channel ID
StartTime Yes Integer Search start time in UTC seconds, for example: 1662114146. The longest period between the start and end times is one day and cannot span multiple days.
EndTime Yes Integer Search end time, UTC seconds. Example: 1662114246. The longest period between the start and end times is one day, and cannot span multiple days.
WithUrl No Boolean Whether to carry the playback url for each time period

3. Output Parameters

Parameter Name Type Description
Data DescribeRecordFileData Returned result
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 No recording time period

Input Example

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

{
    "DeviceId": "389708b2-bcbb-****-****-a61f528b2a15",
    "ChannelId": "32525dd7-c3fc-****-****-d5beb4acd1e1",
    "StartTime": 1687622400,
    "EndTime": 1687708799
}

Output Example

{
    "Response": {
        "Data": {
            "List": null,
            "Tips": 0
        },
        "RequestId": "fba7981b-d6a4-4177-b11d-e53a6110e4cd"
    }
}

Example2 Has recording time period

Input Example

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

{
    "DeviceId": "389708b2-bcbb-****-****-a61f528b2a15",
    "ChannelId": "32525dd7-c3fc-****-****-d5beb4acd1e1",
    "StartTime": 1687622400,
    "EndTime": 1687708799
}

Output Example

{
    "Response": {
        "Data": {
            "Tips": 0,
            "List": [
                {
                    "Begin": 1687651516,
                    "End": 1687653336
                },
                {
                    "Begin": 1687653336,
                    "End": 1687655156
                },
                {
                    "Begin": 1687655156,
                    "End": 1687656976
                },
                {
                    "Begin": 1687656976,
                    "End": 1687658796
                }
            ]
        },
        "RequestId": "fba7981b-d6a4-4177-b11d-e53a6110e4cd"
    }
}

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
InvalidParameter.InvalidBodyFormat Invalid message body format
InvalidParameter.InvalidParameter Invalid input parameter
InvalidParameterValue.IllegalChannelId Channel ID contains illegal characters
InvalidParameterValue.IllegalDeviceId Device ID contains illegal characters
InvalidParameterValue.InvalidChannelId Invalid channel ID
InvalidParameterValue.InvalidDeviceId Invalid device ID
InvalidParameterValue.InvalidStartTimeOrEndTime Invalid start or end time
InvalidParameterValue.NonSameDay Time cannot span across days.
InvalidParameterValue.StartTimeGreaterThanOrEqualEndTime Start time cannot be greater than or equal to end time.
ResourceNotFound.DeviceNotExist Device does not exist

帮助和支持

本页内容是否解决了您的问题?

填写满意度调查问卷,共创更好文档体验。

文档反馈