Queries log entries of rate limiting.

Note
  • If you do not set the StartTime or EndTime parameter, data within the last 24 hours is queried. If you set both the StartTime and EndTime parameters, data within the specified time range is queried. You must set both parameters or leave both of them empty.
  • You can specify multiple domain names (no more than 20) and separate them with commas (,).
  • You can query data within the last 30 days.
  • The maximum number of times that each user can call this operation per second is 50.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeDomainCcActivityLog

Set the value to DescribeDomainCcActivityLog.

DomainName String No example.com

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

If you do not specify a domain name, data of all domain names is queried.

StartTime String No 2018-12-10T20:00:00Z

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

Data is collected every 5 minutes.

If you do not set this parameter, data within the last 24 hours is queried.

EndTime String No 2018-12-10T21:00:00Z

The end of the time range 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.

TriggerObject String No IP

The object that triggered rate limiting.

If you do not set this parameter, all events that triggered rate limiting are queried.

Value String No 1.2.3.4

The value of the object that triggered rate limiting.

If you do not set this parameter, the values of all events that triggered rate limiting are queried.

RuleName String No test2

A custom rule name. Valid values:

  • Default mode: default_normal.
  • Emergency mode: default_attack.

If you do not set this parameter, all events that triggered rate limiting are queried.

PageSize Long No 30

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

PageNumber Long No 1

The number of the page to return. Default value: 1.

Response parameters

Parameter Type Example Description
ActivityLog Array of LogInfo

The log entry of the event that triggered rate limiting.

Action String deny

The action that was triggered.

DomainName String example.com

The accelerated domain name.

RuleName String test

The name of the rule that was triggered

TimeStamp String 2015-12-10T20:00:00Z

The timestamp of the data.

TriggerObject String Ip

The object that triggered rate limiting.

Ttl Long 300

The period of time that rate limiting remains effective.

Value String 1.2.3.4

The value of the object that triggered rate limiting.

PageIndex Long 1

The page number of the returned page.

PageSize Long 30

The number of entries returned per page.

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

The ID of the request.

Total Long 20

The total number of entries returned.

Examples

Sample requests

http://cdn.aliyuncs.com?Action=DescribeDomainCcActivityLogData&DomainName=example.com
&StartTime=2015-12-10T20:00:00Z
&EndTime=2015-12-10T21:05:00Z
&<Common request parameters>

Sample success responses

XML format

<DescribeDomainCcActivityLogResponse>
  <Total>20</Total>
  <PageSize>30</PageSize>
  <PageIndex>1</PageIndex>
  <RequestId>3C6CCEC4-6B88-4D4A-93E4-D47B3D92CF8F</RequestId>
  <ActivityLog>
        <TimeStamp>2015-12-10T20:00:00Z</TimeStamp>
        <Value>1.2.3.4</Value>
        <TriggerObject>Ip</TriggerObject>
        <DomainName>example.com</DomainName>
        <Ttl>300</Ttl>
        <Action>deny</Action>
        <RuleName>test2</RuleName>
  </ActivityLog>
  <ActivityLog>
        <TimeStamp>2015-12-10T20:00:00Z</TimeStamp>
        <Value>safari 5.1 - Windows</Value>
        <TriggerObject>Header_UserAgent</TriggerObject>
        <DomainName>example.com</DomainName>
        <Ttl>300</Ttl>
        <Action>deny</Action>
        <RuleName>test2</RuleName>
  </ActivityLog>
</DescribeDomainCcActivityLogResponse>

JSON format

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

Error codes

HttpCode Error code Error message Description
400 InvalidStartTime.Malformed Specified StartTime is malformed. The error message returned because the format of the specified start time is invalid. For more information about the time format, see the Request parameters section.
400 InvalidEndTime.Malformed Specified EndTime is malformed. The error message returned because the format of the specified end time is invalid. For more information about the time format, see the Request parameters section.
400 InvalidStartTime.ValueNotSupported The specified value of parameter StartTime is not supported. The error message returned because the specified start time is invalid. Rectify the start time and try again.

For a list of error codes, visit the API Error Center.