Help Center/ Content Delivery Network/ API Reference/ API/ Analytics/ Querying Asynchronous Statistics Export Tasks
Updated on 2025-11-27 GMT+08:00

Querying Asynchronous Statistics Export Tasks

Function

This API is used to query asynchronous statistics export tasks in pagination mode. The tasks are sorted by modification time in descending order. If a task's status is success, the response will include a download_link parameter.

Calling Method

For details, see Calling APIs.

URI

GET /v1/cdn/statistics/export-tasks

Table 1 Query Parameters

Parameter

Mandatory

Type

Description

limit

No

Integer

  • Number of items displayed on each page. The default value is 10.

offset

No

Integer

Offset, which is the position where the query starts. The value must be greater than or equal to 0 (default value).

task_id

Yes

String

Task ID.

task_name

Yes

String

Task name.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

total

Integer

Total number of export tasks.

data

Array of ExportTask objects

Export task.

Table 3 ExportTask

Parameter

Type

Description

task_id

String

Export task ID.

task_name

String

Export task name.

status

String

Definition

Application status (for a domain name).

Constraints

N/A

Value Range

  • success: The template is applied.

  • fail: The template fails to be applied.

Default Value

N/A

download_link

String

Download link.

create_time

Long

Creation time.

update_time

Long

Last update time.

Status code: default

Table 4 Response body parameters

Parameter

Type

Description

error

ErrMsg object

Error code and error message.

Table 5 ErrMsg

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Example Requests

None

Example Responses

None

Status Codes

Status Code

Description

200

Success response.

default

Error response.

Error Codes

See Error Codes.