Describes the accurate access control rules created by Deep Learning and Protection.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SiteId |
integer |
Yes |
The site ID. To obtain the site ID, call the ListSites operation. |
5407498413**** |
| PageNumber |
integer |
Yes |
The current page number. |
1 |
| PageSize |
integer |
No |
The number of entries per page. |
10 |
| RuleType |
string |
No |
The rule type. |
acl |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
0AEDAF20-4DDF-4165-8750-47FF9C1929C9 |
| TotalCount |
integer |
The total number of rules. |
100 |
| PageNumber |
integer |
The current page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
10 |
| RuleInfos |
array<object> |
The list of rules. |
|
|
object |
|||
| RuleName |
string |
The rule name. |
smart_cc_*** |
| RecordName |
string |
The record name. |
test.example.com |
| Action |
string |
The protection action. |
deny |
| RuleId |
integer |
The rule ID. |
20569929 |
| Condition |
string |
The rule trigger condition. |
{"$and":[{"key":"URI","opValue":"prefix-match","values":"/"}]} |
| PunishTime |
integer |
The action duration. Unit: seconds. |
1800 |
| LogRuleId |
integer |
The ID of the protection rule for log records. |
1000030 |
Examples
Success response
JSON format
{
"RequestId": "0AEDAF20-4DDF-4165-8750-47FF9C1929C9",
"TotalCount": 100,
"PageNumber": 1,
"PageSize": 10,
"RuleInfos": [
{
"RuleName": "smart_cc_***",
"RecordName": "test.example.com",
"Action": "deny",
"RuleId": 20569929,
"Condition": "{\"$and\":[{\"key\":\"URI\",\"opValue\":\"prefix-match\",\"values\":\"/\"}]}",
"PunishTime": 1800,
"LogRuleId": 1000030
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.SiteId | The specified SiteId is invalid. | The specified SiteId is invalid.Check parameter SiteId and try again. |
| 400 | ErrSiteIdNoteEnterprise | This feature is unavailable because your website is not associated with an Enterprise plan. Upgrade your plan to Enterprise. | This feature is unavailable because your website is not associated with an Enterprise plan. Upgrade your plan to Enterprise. |
| 500 | InternalError | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
| 403 | SiteIdDDoSVersionCheckFailed | SiteId DDoS version check failed. | Failed to check the DDoS version corresponding to the site. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.