tencent cloud



Last updated: 2022-02-23 10:16:35

1. API Description

Domain name for API request: ecdn.tencentcloudapi.com.

This API is used to query the access log download link of a domain name.

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.
This document describes the parameters for Signature V1. It's recommended to use the V3 signature, which provides higher security. Note that for Signature V3, the common parameters need to be placed in the HTTP Header. See details.

Parameter Name Required Type Description
Action Yes String Common parameter. The value used for this API: DescribeEcdnDomainLogs.
Version Yes String Common parameter. The value used for this API: 2019-10-12.
Region No String Common parameter. This parameter is not required for this API.
Domain Yes String Domain name to be queried.
StartTime Yes Timestamp Log start time, such as 2019-10-01 00:00:00
EndTime Yes Timestamp Log end time, such as 2019-10-02 00:00:00. Only logs for the last 30 days can be queried.
Offset No Integer Pagination offset for log link list. Default value: 0.
Limit No Integer Number of log links per page. Default value: 100. Maximum value: 1000.

3. Output Parameters

Parameter Name Type Description
DomainLogs Array of DomainLogs Log link list.
Note: this field may return null, indicating that no valid values can be obtained.
TotalCount Integer Total number of log links.
RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

4. Example

Input Example

&StartTime=2019-09-04 00:00:00
&EndTime=2019-09-04 12:00:00
&<Common request parameters>

Output Example

  "Response": {
    "RequestId": "13d41d37-546f-42ed-a3b9-ff82a51ecd0a",
    "DomainLogs": [
        "StartTime": "2019-09-04 23:00:00",
        "EndTime": "2019-09-04 23:59:59",
        "LogPath": "http://www.test.qcloud.com/20190904/23/201909042300-www.test.com.gz?st=hGzJr0QFpo3jYM2uj7kkjA&e=3135214538"
    "TotalCount": 300

5. Developer Resources


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
InternalError.EcdnConfigError Internal configuration service error. Please try again later or contact the customer service for assistance.
InternalError.EcdnDbError Internal data error. Please submit a ticket for troubleshooting.
InvalidParameter.EcdnParamError Parameter error. Please see the sample parameters in the documentation.
InvalidParameter.EcdnStatInvalidDate Invalid date. Please see the sample date in the documentation.
LimitExceeded.EcdnDomainOpTooOften Domain name operations are too frequent.
ResourceNotFound.EcdnDomainNotExists This domain name does not exist under the account. Please check and try again.
ResourceNotFound.EcdnHostNotExists This domain name does not exist under the account. Please check and try again.
ResourceNotFound.EcdnUserNotExists The ECDN service has not been activated. Please activate it first before using this API.
UnauthorizedOperation.EcdnAccountUnauthorized The sub-account is unauthorized to query full data.
UnauthorizedOperation.EcdnCamUnauthorized No CAM policy is configured for the sub-account.
UnauthorizedOperation.EcdnDomainUnauthorized The acceleration domain name is not authorized for the ECDN sub-account.
UnauthorizedOperation.EcdnHostUnauthorized The acceleration domain name is not authorized for the ECDN sub-account.
UnauthorizedOperation.EcdnNoDomainUnauthorized The sub-account does not have the permission to access the domain name. Please try again after authorization.
Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support