Queries the IP address blocking history.
Operation description
-
To use this operation, submit a ticket.
-
For specified IP addresses and a time range, this operation returns the time when each IP address was delivered to the edge and the delivery result.
-
If a specified IP address or CIDR block has multiple blocking records in a specified time range, the records are sorted by delivery time in descending order.
-
The maximum time range to query is 90 days.
-
If no blocking record exists or delivery fails for the given IP address and time range, the delivery time is empty.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cdn:DescribeCdnFullDomainsBlockIPHistory |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| IPList |
string |
Yes |
The IP addresses or CIDR blocks to query. |
1.XXX.XXX.1,2.XXX.XXX.2 |
| StartTime |
string |
Yes |
The start of the time range to query. Set this parameter to a value in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. |
2023-04-24T17:00:00Z |
| EndTime |
string |
Yes |
The end of the time range to query. Set this parameter to a value in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The end time must be later than the start time. |
2023-04-24T19:00:00Z |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
BCD7D917-76F1-442F-BB75-C810DE34C761 |
| IPBlockInfo |
array<object> |
The blocking history records. |
|
|
object |
|||
| BlockIP |
string |
The blocked IP address or CIDR block. |
1.XXX.XXX.0~1.XXX.XXX.255 |
| DeliverTime |
string |
The delivery time. |
2023-04-24 18:49:37 |
| Status |
string |
The delivery status.
|
Success |
| Code |
integer |
The response code. A non-zero value indicates one of the following errors:
|
0 |
| Description |
string |
The status description. |
OK |
Examples
Success response
JSON format
{
"RequestId": "BCD7D917-76F1-442F-BB75-C810DE34C761",
"IPBlockInfo": [
{
"BlockIP": "1.XXX.XXX.0~1.XXX.XXX.255\n",
"DeliverTime": "2023-04-24 18:49:37\n",
"Status": "Success"
}
],
"Code": 0,
"Description": "OK"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | |
| 400 | QuotaExceeded | The quota is exceeded. | The quota is exhausted. |
| 500 | InternalServerError | internal server error | A service error occurred. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.