Help Center/ Content Delivery Network/ API Reference/ API/ Analytics/ Creating an Operations Report Subscription Task
Updated on 2025-09-05 GMT+08:00

Creating an Operations Report Subscription Task

Function

create subscription task

Calling Method

For details, see Calling APIs.

URI

POST /v1/cdn/statistics/subscription-tasks

Request Parameters

Table 1 Request body parameters

Parameter

Mandatory

Type

Description

name

No

String

  • Name of a subscription task.

  • The value contains up to 32 characters, including letters and hyphens (-).

period_type

No

Integer

  • Type of the subscription task. Possible values:

  • 0: daily report.

  • 1: weekly report.

  • 2: monthly report.

emails

No

String

Email addresses for receiving operations reports. Email addresses are separated by commas (,).

domain_name

No

String

List of subscribed domain names, which are separated by commas (.). If this parameter is set to all, operations reports are subscribed to for all domain names under the account.

report_type

No

String

  • Operations report type. Multiple types are separated by commas (,).

  • 0: access area distribution.

  • 1: country distribution.

  • 2: carrier distribution.

  • 3: domain name rankings (sorted by traffic).

  • 4: popular URLs (sorted by traffic).

  • 5: popular URLs (sorted by the number of requests).

  • 6: popular referers (sorted by traffic).

  • 7: popular referers (sorted by the number of requests).

  • 10: popular origin URLs (sorted by traffic).

  • 11: popular origin URLs (sorted by the number of requests).

  • 13: popular UAs (sorted by traffic).

  • 14: popular UAs (sorted by the number of requests).

Response Parameters

Status code: 204

Success response

Status code: default

Table 2 Response body parameters

Parameter

Type

Description

error

ErrMsg object

Error code and error message.

Table 3 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

204

Success response

default

Abnormal response

Error Codes

See Error Codes.