All Products
Search
Document Center

CDN:DescribeDomainCcActivityLog

Last Updated:Oct 10, 2026

Queries the block logs for rate limiting rules.

Operation description

  • If StartTime and EndTime are not specified, this operation queries data from the last 24 hours by default. You can also specify a start time and an end time to query data within a specific time range. Both parameters must be specified at the same time.

  • You can query multiple domain names at a time. Separate multiple domain names with commas (,). You can query up to 20 domain names in a single request.

  • You can query data from the last 30 days at most.

  • Rate limit per user: 50 queries per second.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

cdn:DescribeDomainCcActivityLog

get

*Domain

acs:cdn:*:{#accountId}:domain/{#DomainName}

None None

Request parameters

Parameter

Type

Required

Description

Example

DomainName

string

No

The accelerated domain names to query. You can specify multiple domain names and separate them with commas (,).

If this parameter is left empty, the aggregated data of all accelerated domain names is returned by default.

example.com

StartTime

string

No

The start time of the data to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

The minimum data granularity is 5 minutes.

If this parameter is left empty, data from the last 24 hours is queried by default.

2018-12-10T20:00:00Z

EndTime

string

No

The end time of the data to query. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

The end time must be later than the start time.

2018-12-10T21:00:00Z

TriggerObject

string

No

The trigger object.

If this parameter is left empty, all block events are queried.

IP

Value

string

No

The value of the trigger object.

If this parameter is left empty, all block events are queried.

1.2.3.4

RuleName

string

No

The name of the custom rule. Valid values:

  • default_normal: Normal mode rule.

  • default_attack: Emergency mode rule.

If this parameter is left empty, all block events are queried.

test2

PageSize

integer

No

The number of entries to return on each page. Default value: 30.

30

PageNumber

integer

No

The page number. Default value: 1.

1

Response elements

Element

Type

Description

Example

object

PageIndex

integer

The page number of the returned data.

1

RequestId

string

The request ID.

3C6CCEC4-6B88-4D4A-93E4-D47B3D92CF8F

PageSize

integer

The number of entries returned on each page.

30

Total

integer

The total number of entries.

20

ActivityLog

array<object>

The list of block event logs.

object

Value

string

The value of the trigger object.

1.2.3.4

Ttl

integer

The effective duration. Unit: seconds.

300

Action

string

The block action.

deny

TriggerObject

string

The trigger object.

Ip

TimeStamp

string

The start time of the time slice. The time is in the ISO 8601 standard and in UTC.

2015-12-10T20:00:00Z

DomainName

string

The accelerated domain name.

example.com

RuleName

string

The name of the custom block rule.

test

Examples

Success response

JSON format

{
  "PageIndex": 1,
  "RequestId": "3C6CCEC4-6B88-4D4A-93E4-D47B3D92CF8F",
  "PageSize": 30,
  "Total": 20,
  "ActivityLog": [
    {
      "Value": "1.2.3.4",
      "Ttl": 300,
      "Action": "deny",
      "TriggerObject": "Ip",
      "TimeStamp": "2015-12-10T20:00:00Z",
      "DomainName": "example.com",
      "RuleName": "test"
    }
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidStartTime.Malformed Specified StartTime is malformed. The specified start time is invalid. For more information, see the API references.
400 InvalidEndTime.Malformed Specified EndTime is malformed. The format of the end time is invalid. Specify a valid value.
400 InvalidStartTime.ValueNotSupported The specified value of parameter StartTime is not supported.
400 InvalidEndTime.Mismatch The specified EndTime is earlier than the StartTime. EndTime is earlier than StartTime.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.