1. 接口描述
接口请求域名: fwm.tencentcloudapi.com 。
查询账号+产品维度风险统计,按账号分组返回各产品的体检策略数、待整改风险数、整改率、最近体检时间等信息,支持按账号名称/ID搜索以及仅看待整改、仅超时未体检筛选
默认接口请求频率限制:20次/秒。
推荐使用 API Explorer
点击调试
API Explorer 提供了在线调用、签名验证、SDK 代码生成和快速检索接口等能力。您可查看每次调用的请求内容和返回结果以及自动生成 SDK 调用示例。
2. 输入参数
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| Action | 是 | String | 公共参数,本接口取值:DescribePolicyRiskAccountProductStats。 |
| Version | 是 | String | 公共参数,本接口取值:2025-06-11。 |
| Region | 否 | String | 公共参数,此参数为可选参数。 |
| Limit | 否 | Integer | 分页大小,按账号分页,默认20,最大100 示例值:20 |
| Offset | 否 | Integer | 分页偏移,默认0 示例值:0 |
| Filters.N | 否 | Array of CommonFilter | 筛选条件列表。支持的筛选字段:AccountName(账号名称模糊搜索)、AccountId(账号Uin精确搜索)、OnlyUntreated(仅看待整改,值为1时生效)、OnlyOverdue(仅超时未体检,值为1时生效) |
3. 输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| AccountStats | Array of AccountStatsGroup | 按账号分组的风险统计列表 注意:此字段可能返回 null,表示取不到有效值。 |
| TotalCount | Integer | 满足条件的账号总数 示例值:10 |
| OverdueAccountCount | Integer | 超时未体检的账号数 示例值:2 |
| OverdueProductCount | Integer | 超时未体检的产品数 示例值:2 |
| RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
4. 示例
示例1 查询仅待整改
输入示例
POST / HTTP/1.1
Host: fwm.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribePolicyRiskAccountProductStats
<公共请求参数>
{
"Filters": [
{
"Name": "OnlyUntreated",
"Values": [
"1"
],
"OperatorType": 7
}
]
}
输出示例
{
"Response": {
"AccountStats": [
{
"Member": {
"AppId": "1300448058",
"MemberId": "mem-1300846651-100011616646",
"Nickname": "天空之蓝",
"Uin": "100011616646"
},
"ProductStats": [
{
"IgnoredRiskCount": 55,
"LastCheckTime": "2026-03-26 15:29:52",
"PolicyCount": 1151,
"Product": "sg",
"ProductName": "安全组",
"RectifyRate": "0%",
"TotalRiskCount": 152,
"TreatedRiskCount": 0,
"UntreatedRiskCount": 97
},
{
"IgnoredRiskCount": 0,
"LastCheckTime": "2026-03-09 19:42:49",
"PolicyCount": 34,
"Product": "enterprise_sg",
"ProductName": "企业安全组",
"RectifyRate": "0%",
"TotalRiskCount": 4,
"TreatedRiskCount": 0,
"UntreatedRiskCount": 4
}
],
"UntreatedRiskCount": 101
}
],
"RequestId": "d4f449f9-921c-43ad-a97a-edb27a2d685a",
"TotalCount": 1
}
}
示例2 查询仅超时未体检
输入示例
POST / HTTP/1.1
Host: fwm.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribePolicyRiskAccountProductStats
<公共请求参数>
{
"Filters": [
{
"Name": "OnlyOverdue",
"Values": [
"1"
],
"OperatorType": 7
}
]
}
输出示例
{
"Response": {
"AccountStats": [
{
"Member": {
"AppId": "1314503630",
"MemberId": "mem-1300846651-100027980407",
"Nickname": "测试部门",
"Uin": "100027980407"
},
"ProductStats": [],
"UntreatedRiskCount": 0
},
{
"Member": {
"AppId": "1300846651",
"MemberId": "mem-1300846651-100011949846",
"Nickname": "焦糖小蛋糕",
"Uin": "100011949846"
},
"ProductStats": [],
"UntreatedRiskCount": 0
},
{
"Member": {
"AppId": "1327492904",
"MemberId": "mem-1300846651-100037509558",
"Nickname": "fengqqian",
"Uin": "100037509558"
},
"ProductStats": [],
"UntreatedRiskCount": 0
},
{
"Member": {
"AppId": "1315399711",
"MemberId": "mem-1300846651-100028671395",
"Nickname": "美式",
"Uin": "100028671395"
},
"ProductStats": [],
"UntreatedRiskCount": 0
},
{
"Member": {
"AppId": "1314933167",
"MemberId": "mem-1300846651-100028354982",
"Nickname": "少年时",
"Uin": "100028354982"
},
"ProductStats": [],
"UntreatedRiskCount": 0
}
],
"RequestId": "82758a29-81f8-466e-a8cd-ea60343d23fe",
"TotalCount": 5
}
}
示例3 查询账号+产品维度风险统计
输入示例
POST / HTTP/1.1
Host: fwm.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribePolicyRiskAccountProductStats
<公共请求参数>
{
"Limit": 20,
"Offset": 0
}
输出示例
{
"Response": {
"AccountStats": [
{
"Member": {
"AppId": "1300448058",
"Uin": "100000009710",
"Nickname": "cfw-test",
"MemberId": "member-001"
},
"UntreatedRiskCount": 20,
"ProductStats": [
{
"Product": "enterprise_sg",
"ProductName": "企业安全组",
"PolicyCount": 200,
"UntreatedRiskCount": 20,
"TotalRiskCount": 30,
"TreatedRiskCount": 5,
"IgnoredRiskCount": 5,
"RectifyRate": "0%",
"LastCheckTime": "2025-10-22 10:00:00"
},
{
"Product": "sg",
"ProductName": "安全组",
"PolicyCount": 100,
"UntreatedRiskCount": 0,
"TotalRiskCount": 0,
"TreatedRiskCount": 0,
"IgnoredRiskCount": 0,
"RectifyRate": "无需整改",
"LastCheckTime": "2025-10-22 10:00:00"
}
]
},
{
"Member": {
"AppId": "1300846651",
"Uin": "100000009711",
"Nickname": "cfw-test2",
"MemberId": "member-002"
},
"UntreatedRiskCount": 1,
"ProductStats": [
{
"Product": "sg",
"ProductName": "安全组",
"PolicyCount": 20,
"UntreatedRiskCount": 1,
"TotalRiskCount": 1,
"TreatedRiskCount": 0,
"IgnoredRiskCount": 0,
"RectifyRate": "0%",
"LastCheckTime": "2025-10-22 10:00:00"
}
]
}
],
"TotalCount": 2,
"RequestId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
}
示例4 根据Uin过滤
输入示例
POST / HTTP/1.1
Host: fwm.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribePolicyRiskAccountProductStats
<公共请求参数>
{
"Filters": [
{
"Name": "Uin",
"Values": [
"100011616646"
],
"OperatorType": 9
}
]
}
输出示例
{
"Response": {
"AccountStats": [
{
"Member": {
"AppId": "1300448058",
"MemberId": "mem-1300846651-100011616646",
"Nickname": "天空之蓝",
"Uin": "100011616646"
},
"ProductStats": [
{
"IgnoredRiskCount": 55,
"LastCheckTime": "2026-03-26 15:29:52",
"PolicyCount": 1151,
"Product": "sg",
"ProductName": "安全组",
"RectifyRate": "0%",
"TotalRiskCount": 152,
"TreatedRiskCount": 0,
"UntreatedRiskCount": 97
},
{
"IgnoredRiskCount": 0,
"LastCheckTime": "2026-03-09 19:42:49",
"PolicyCount": 34,
"Product": "enterprise_sg",
"ProductName": "企业安全组",
"RectifyRate": "0%",
"TotalRiskCount": 4,
"TreatedRiskCount": 0,
"UntreatedRiskCount": 4
}
],
"UntreatedRiskCount": 101
}
],
"RequestId": "de07ff51-a85e-4970-883a-0b73f788eb06",
"TotalCount": 1
}
}
示例5 根据账号昵称筛选
输入示例
POST / HTTP/1.1
Host: fwm.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribePolicyRiskAccountProductStats
<公共请求参数>
{
"Filters": [
{
"Name": "Nickname",
"Values": [
"蓝"
],
"OperatorType": 9
}
]
}
输出示例
{
"Response": {
"AccountStats": [
{
"Member": {
"AppId": "1300448058",
"MemberId": "mem-1300846651-100011616646",
"Nickname": "天空之蓝",
"Uin": "100011616646"
},
"ProductStats": [
{
"IgnoredRiskCount": 55,
"LastCheckTime": "2026-03-26 15:29:52",
"PolicyCount": 1151,
"Product": "sg",
"ProductName": "安全组",
"RectifyRate": "0%",
"TotalRiskCount": 152,
"TreatedRiskCount": 0,
"UntreatedRiskCount": 97
},
{
"IgnoredRiskCount": 0,
"LastCheckTime": "2026-03-09 19:42:49",
"PolicyCount": 34,
"Product": "enterprise_sg",
"ProductName": "企业安全组",
"RectifyRate": "0%",
"TotalRiskCount": 4,
"TreatedRiskCount": 0,
"UntreatedRiskCount": 4
}
],
"UntreatedRiskCount": 101
}
],
"RequestId": "09c2396d-5a7f-4d0b-b54d-eaa11f0729f1",
"TotalCount": 1
}
}
示例6 默认请求
输入示例
POST / HTTP/1.1
Host: fwm.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribePolicyRiskAccountProductStats
<公共请求参数>
{}
输出示例
{
"Response": {
"AccountStats": [
{
"Member": {
"AppId": "1300448058",
"MemberId": "mem-1300846651-100011616646",
"Nickname": "天空之蓝",
"Uin": "100011616646"
},
"ProductStats": [
{
"IgnoredRiskCount": 55,
"IsOverdue": true,
"LastCheckTime": "2026-03-26 15:29:52",
"PolicyCount": 1151,
"Product": "sg",
"ProductName": "安全组",
"RectifyRate": "0%",
"SubcategoryIds": [
"risk_port_ssh_22",
"inbound_accept_any",
"exact_duplicate_rules",
"merge_rules",
"risk_port_rdp_3389",
"risk_port_20_21",
"overridden_rules"
],
"TotalRiskCount": 152,
"TreatedRiskCount": 0,
"UntreatedRiskCount": 97
},
{
"IgnoredRiskCount": 0,
"IsOverdue": true,
"LastCheckTime": "2026-03-27 11:47:27",
"PolicyCount": 46,
"Product": "enterprise_sg",
"ProductName": "企业安全组",
"RectifyRate": "无需整改",
"SubcategoryIds": [],
"TotalRiskCount": 24,
"TreatedRiskCount": 24,
"UntreatedRiskCount": 0
}
],
"RectifyRate": "14%",
"UntreatedRiskCount": 97
},
{
"Member": {
"AppId": "1300846651",
"MemberId": "mem-1300846651-100011949846",
"Nickname": "焦糖小蛋糕",
"Uin": "100011949846"
},
"ProductStats": [],
"RectifyRate": "无需整改",
"UntreatedRiskCount": 0
},
{
"Member": {
"AppId": "1327492904",
"MemberId": "mem-1300846651-100037509558",
"Nickname": "fengqqian",
"Uin": "100037509558"
},
"ProductStats": [],
"RectifyRate": "无需整改",
"UntreatedRiskCount": 0
},
{
"Member": {
"AppId": "1315399711",
"MemberId": "mem-1300846651-100028671395",
"Nickname": "美式",
"Uin": "100028671395"
},
"ProductStats": [],
"RectifyRate": "无需整改",
"UntreatedRiskCount": 0
},
{
"Member": {
"AppId": "1314933167",
"MemberId": "mem-1300846651-100028354982",
"Nickname": "少年时",
"Uin": "100028354982"
},
"ProductStats": [],
"RectifyRate": "无需整改",
"UntreatedRiskCount": 0
},
{
"Member": {
"AppId": "1314503630",
"MemberId": "mem-1300846651-100027980407",
"Nickname": "测试部门",
"Uin": "100027980407"
},
"ProductStats": [],
"RectifyRate": "无需整改",
"UntreatedRiskCount": 0
}
],
"OverdueAccountCount": 6,
"OverdueProductCount": 2,
"RequestId": "6f57db6e-44a6-4d70-9fae-4b9eef649b3b",
"TotalCount": 6
}
}
5. 开发者资源
腾讯云 API 平台
腾讯云 API 平台 是综合 API 文档、错误码、API Explorer 及 SDK 等资源的统一查询平台,方便您从同一入口查询及使用腾讯云提供的所有 API 服务。
API Inspector
用户可通过 API Inspector 查看控制台每一步操作关联的 API 调用情况,并自动生成各语言版本的 API 代码,也可前往 API Explorer 进行在线调试。
SDK
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
- Tencent Cloud SDK 3.0 for Python: CNB, GitHub, Gitee
- Tencent Cloud SDK 3.0 for Java: CNB, GitHub, Gitee
- Tencent Cloud SDK 3.0 for PHP: CNB, GitHub, Gitee
- Tencent Cloud SDK 3.0 for Go: CNB, GitHub, Gitee
- Tencent Cloud SDK 3.0 for Node.js: CNB, GitHub, Gitee
- Tencent Cloud SDK 3.0 for .NET: CNB, GitHub, Gitee
- Tencent Cloud SDK 3.0 for C++: CNB, GitHub, Gitee
- Tencent Cloud SDK 3.0 for Ruby: CNB, GitHub, Gitee
命令行工具
6. 错误码
该接口暂无业务逻辑相关的错误码,其他错误码详见 公共错误码。