Domain name for API request: teo.intl.tencentcloudapi.com.
This API is used to create a log analysis download task. After creation, you can query the download task through the DescribeLogAnalysisDownloadTasks API.
Note:
A maximum of 10 requests can be initiated per second for this API.
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: CreateLogAnalysisDownloadTask. |
| Version | Yes | String | Common Params. The value used for this API: 2022-09-01. |
| Region | No | String | Common Params. This parameter is not required. |
| ZoneId | Yes | String | Site ID. |
| Area | Yes | String | Data ownership region. Available values:
|
| StartTime | Yes | Timestamp ISO8601 | Start time. Example value: 2020-04-29T00:00:00Z. The maximum supported span from the query start time to this day varies by package version. For details, see Package Selection Comparison. |
| EndTime | Yes | Timestamp ISO8601 | End time, for example, 2020-04-30T00:00:00Z. The maximum time span from start time to end time per request is 31 days. |
| LogType | No | String | Log type. Available values:
|
| Condition | No | String | Log match condition, with a maximum length of 12 KB. |
| Format | No | String | File format. Available value:
|
| Sort | No | String | Time sorting of raw logs. Available values:
|
| Parameter Name | Type | Description |
|---|---|---|
| TaskId | String | Log analytics download task ID. |
| 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. |
Download the Layer 7 Access Logs for the selected site with ID "zone-2z55fgysdtmc", associated region Chinese mainland, between UTC+8 2025-07-10 00:00:00 – 2025-07-11 00:00:00, in reverse chronological order, file format csv.
Log match condition: The request domain is "www.example.com", and the hit status is "hit" or "miss".
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateLogAnalysisDownloadTask
<Common request parameters>
{
"ZoneId": "zone-2z55fgysdtmc",
"Area": "mainland",
"StartTime": "2025-07-10T00:00:00+08:00",
"EndTime": "2025-07-11T00:00:00+08:00",
"LogType": "l7-access-logs",
"Condition": "${RequestHost} in ['www.example.com'] AND ${EdgeCacheStatus} in ['hit','miss']",
"Format": "csv",
"Sort": "desc"
}
{
"Response": {
"RequestId": "88e4f1a4-ee44-42e9-8aa8-a9b1631ecc5e",
"TaskId": "task-1a4wdeq2wsda"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
There is no error code related to the API business logic. For other error codes, please see Common Error Codes.
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários