Last updated: 2020-05-29 11:13:58

1. API Description

Domain name for API request:

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.

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 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": ""
    "TotalCount": 300

5. Developer Resources

API Explorer

This tool allows online call, signature authentication, SDK code generation and quick search of APIs to greatly improve the efficiency of using TencentCloud APIs.


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
InvalidParameter.EcdnParamError Parameter error. Please see the sample parameters in the documentation.
InvalidParameter.EcdnStatInvalidDate Invalid date. Please see the sample date in the documentation.
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.

Was this page helpful?

Was this page helpful?

  • Not at all
  • Not very helpful
  • Somewhat helpful
  • Very helpful
  • Extremely helpful
Send Feedback