分页查询当前阿里云账号下的Web过滤模板列表。支持按名称和描述信息模糊搜索,按状态精确过滤,按模板ID批量精确过滤。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
yundun-cloudfirewall:ListWebFilterTemplates |
list |
*全部资源
|
无 | 无 |
请求语法
GET HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| PageNo |
integer |
否 |
分页页码。起始值为 1,默认值为 1。 |
1 |
| PageSize |
integer |
否 |
分页大小。取值范围为 1~100,默认值为 10。 |
10 |
| Name |
string |
否 |
Web 过滤模板名称,模糊匹配。 |
Web过滤模板 |
| Description |
string |
否 |
Web 过滤模板描述信息,模糊匹配。 |
URL访问管控 |
| Status |
string |
否 |
Web 过滤模板状态,精确匹配。取值:
|
Enable |
| WebFilterTemplateIds |
array |
否 |
Web 过滤模板 ID 列表,批量精确匹配。最多支持 100 个模板 ID。 |
|
|
string |
否 |
Web 过滤模板 ID。 |
wft-3f2a9c1d4b5e6f70 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回数据。 |
||
| RequestId |
string |
请求 ID。 |
CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D |
| TotalCount |
integer |
符合过滤条件的 Web 过滤模板总数。 |
2 |
| PageNo |
integer |
当前分页页码。 |
1 |
| PageSize |
integer |
当前分页大小。 |
10 |
| WebFilterTemplates |
array<object> |
Web 过滤模板列表。 |
|
|
array<object> |
|||
| WebFilterTemplateId |
string |
Web 过滤模板 ID。 |
wft-3f2a9c1d4b5e6f70 |
| Name |
string |
Web 过滤模板名称。 |
Web过滤模板01 |
| Description |
string |
Web 过滤模板的描述信息。 |
用于URL访问管控的Web过滤模板 |
| Status |
string |
Web 过滤模板的状态。取值:
|
Enable |
| CreateTime |
integer |
Web 过滤模板的创建时间。Unix 时间戳,单位为秒。 |
1731465600 |
| RuleActionStatistics |
object |
模板内 Web 过滤规则按动作分类的数量统计。 |
|
| Allow |
integer |
模板内动作为 Allow(放行)的 Web 过滤规则数量。 |
3 |
| Alert |
integer |
模板内动作为 Alert(观察)的 Web 过滤规则数量。 |
2 |
| Deny |
integer |
模板内动作为 Deny(拦截)的 Web 过滤规则数量。 |
1 |
示例
正常返回示例
JSON格式
{
"RequestId": "CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D",
"TotalCount": 2,
"PageNo": 1,
"PageSize": 10,
"WebFilterTemplates": [
{
"WebFilterTemplateId": "wft-3f2a9c1d4b5e6f70",
"Name": "Web过滤模板01",
"Description": "用于URL访问管控的Web过滤模板",
"Status": "Enable",
"CreateTime": 1731465600,
"RuleActionStatistics": {
"Allow": 3,
"Alert": 2,
"Deny": 1
}
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | ErrorParameters | Parameters error. | 参数错误。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。