分页查询当前阿里云账号下的应用程序模板列表。支持按模板名称和描述信息模糊搜索,按模板ID批量精确过滤,按各开关状态和未识别应用动作精确过滤。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
yundun-cloudfirewall:ListApplicationTemplate |
list |
*全部资源
|
无 | 无 |
请求语法
GET HTTP/1.1
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| PageNo |
integer |
否 |
分页页码。起始值为 1,默认值为 1。 |
1 |
| PageSize |
integer |
否 |
分页大小。取值需大于等于 1,默认值为 10。 |
10 |
| ApplicationTemplateIds |
array |
否 |
应用程序模板 ID 列表,批量精确匹配。 |
|
|
string |
否 |
应用程序模板 ID。 |
ati-4f0691c56b8d4f06 |
|
| ApplicationTemplateName |
string |
否 |
应用程序模板名称,模糊匹配。 |
应用程序模板 |
| Description |
string |
否 |
应用程序模板描述信息,模糊匹配。 |
办公网应用管控 |
| TemplateStatus |
string |
否 |
应用程序模板总开关状态,精确匹配。取值:
|
Enable |
| BuiltInApplicationStatus |
string |
否 |
内置应用管控开关状态,精确匹配。取值:
|
Enable |
| CustomRuleStatus |
string |
否 |
应用程序自定义规则开关状态,精确匹配。取值:
|
Enable |
| UnknownAction |
string |
否 |
未识别应用的处置动作,精确匹配。取值:
|
Alert |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回数据。 |
||
| RequestId |
string |
请求 ID。 |
CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D |
| TotalCount |
integer |
符合过滤条件的应用程序模板总数。 |
2 |
| PageNo |
integer |
当前分页页码。 |
1 |
| PageSize |
integer |
当前分页大小。 |
10 |
| ApplicationTemplates |
array<object> |
应用程序模板列表。 |
|
|
array<object> |
|||
| ApplicationTemplateId |
string |
应用程序模板 ID。 |
ati-4f0691c56b8d4f06 |
| ApplicationTemplateName |
string |
应用程序模板名称。 |
应用程序模板01 |
| Description |
string |
应用程序模板的描述信息。 |
办公网应用管控 |
| CreateTime |
integer |
应用程序模板的创建时间。Unix 时间戳,单位为秒。 |
1731465600 |
| UpdateTime |
integer |
应用程序模板的最近修改时间。Unix 时间戳,单位为秒。 |
1731469200 |
| CustomRuleStatus |
string |
应用程序自定义规则开关状态。取值:
|
Enable |
| UnknownAction |
string |
未识别应用的处置动作。取值:
|
Alert |
| TemplateStatus |
string |
应用程序模板总开关状态。取值:
|
Enable |
| BuiltInApplicationStatus |
string |
内置应用管控开关状态。取值:
|
Enable |
| CustomRuleCount |
integer |
模板下的应用程序自定义规则数量。 |
3 |
| BuiltInApplicationActionStatistics |
object |
模板内内置应用按最终生效动作分类的数量统计。 |
|
| AllowApplicationCount |
integer |
最终生效动作为 Allow(放行)的内置应用数量。 |
10 |
| AlertApplicationCount |
integer |
最终生效动作为 Alert(观察)的内置应用数量。 |
5 |
| DenyApplicationCount |
integer |
最终生效动作为 Deny(拦截)的内置应用数量。 |
2 |
示例
正常返回示例
JSON格式
{
"RequestId": "CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D",
"TotalCount": 2,
"PageNo": 1,
"PageSize": 10,
"ApplicationTemplates": [
{
"ApplicationTemplateId": "ati-4f0691c56b8d4f06",
"ApplicationTemplateName": "应用程序模板01",
"Description": "办公网应用管控",
"CreateTime": 1731465600,
"UpdateTime": 1731469200,
"CustomRuleStatus": "Enable",
"UnknownAction": "Alert",
"TemplateStatus": "Enable",
"BuiltInApplicationStatus": "Enable",
"CustomRuleCount": 3,
"BuiltInApplicationActionStatistics": {
"AllowApplicationCount": 10,
"AlertApplicationCount": 5,
"DenyApplicationCount": 2
}
}
]
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | ErrorParameters | Parameters error. | 参数错误。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。