查询深度学习和防护下发的精准访问控制规则。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| SiteId |
integer |
是 |
站点 ID,可通过调用 ListSites 接口获取。 |
5407498413**** |
| PageNumber |
integer |
是 |
当前页码。 |
1 |
| PageSize |
integer |
否 |
分页大小。 |
10 |
| RuleType |
string |
否 |
规则类型。 |
acl |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
0AEDAF20-4DDF-4165-8750-47FF9C1929C9 |
| TotalCount |
integer |
总规则数。 |
100 |
| PageNumber |
integer |
当前页码。 |
1 |
| PageSize |
integer |
分页大小。 |
10 |
| RuleInfos |
array<object> |
规则信息列表。 |
|
|
object |
|||
| RuleName |
string |
规则名称。 |
smart_cc_*** |
| RecordName |
string |
记录名称。 |
test.example.com |
| Action |
string |
防护动作。 |
deny |
| RuleId |
integer |
规则 ID。 |
20569929 |
| Condition |
string |
规则触发条件。 |
{"$and":[{"key":"URI","opValue":"prefix-match","values":"/"}]} |
| PunishTime |
integer |
处置时间。(单位:秒) |
1800 |
| LogRuleId |
integer |
防护规则 ID(日志记录用)。 |
1000030 |
示例
正常返回示例
JSON格式
{
"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
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter.SiteId | The specified SiteId is invalid. | 站点ID参数非法。 |
| 400 | ErrSiteIdNoteEnterprise | 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. | 调用服务失败,请稍后重试或联系客服咨询详情。 |
| 403 | SiteIdDDoSVersionCheckFailed | SiteId DDoS version check failed. | 站点对应DDoS版本检查失败。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。