Queries log entries of rate limiting.
Operation description
-
If you do not set the StartTime or EndTime parameter, the request returns the data collected in the last 24 hours. If you set both the StartTime and EndTime parameters, the request returns the data collected within the specified time range. You must set both parameters or leave both parameters empty.
-
You can specify up to 20 domain names in reach request. If you specify multiple domain names, separate them with commas (,).
-
You can query data collected over the last 30 days.
-
Each account can call this operation up to 50 times per second.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cdn:DescribeDomainCcActivityLog |
get |
*Domain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DomainName |
string |
No |
The accelerated domain name. You can specify multiple domain names and separate them with commas (,). If you do not specify this parameter, data of all accelerated domain names under your account is queried. |
example.com |
| StartTime |
string |
No |
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. The minimum time granularity of data collection is 5 minutes. If you leave this parameter empty, the data collected over the last 24 hours is queried. |
2018-12-10T20:00:00Z |
| EndTime |
string |
No |
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. |
2018-12-10T21:00:00Z |
| TriggerObject |
string |
No |
The trigger of rate limiting by which you want to query data. If you leave this parameter empty, all events that triggered rate limiting are queried. |
IP |
| Value |
string |
No |
The value of the trigger. If you leave this parameter empty, all events recorded for the trigger are queried. |
1.2.3.4 |
| RuleName |
string |
No |
A custom rule name. Valid values:
If you leave this parameter empty, events that triggered rate limiting based on all rules 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 of the page to return. Default value: 1. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageIndex |
integer |
The page number of the returned page. |
1 |
| RequestId |
string |
The ID of the request. |
3C6CCEC4-6B88-4D4A-93E4-D47B3D92CF8F |
| PageSize |
integer |
The number of entries returned per page. |
30 |
| Total |
integer |
The total number of entries returned. |
20 |
| ActivityLog |
array<object> |
The list of rate limiting logs. |
|
|
object |
|||
| Value |
string |
The value of the trigger for rate limiting. |
1.2.3.4 |
| Ttl |
integer |
The period of time during which rate limiting remains effective. |
300 |
| Action |
string |
The action that was triggered. |
deny |
| TriggerObject |
string |
The trigger of rate limiting. |
Ip |
| TimeStamp |
string |
The timestamp of the data returned. |
2015-12-10T20:00:00Z |
| DomainName |
string |
The accelerated domain name. |
example.com |
| RuleName |
string |
The name of the rule based on which rate limiting was triggered. |
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.