接口请求域名: apm.intl.tencentcloudapi.com 。
查询漏洞指标
默认接口请求频率限制:20次/秒。
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| Action | 是 | String | 公共参数,本接口取值:DescribeApmVulnerabilityCount。 |
| Version | 是 | String | 公共参数,本接口取值:2021-06-22。 |
| Region | 是 | String | 公共参数,详见产品支持的 地域列表。 |
| InstanceId | 是 | String | APM业务系统ID |
| ServiceName | 是 | String | APM应用名称 |
| StartTime | 是 | Integer | 秒级时间戳 |
| EndTime | 否 | Integer | 秒级时间戳 |
| Type | 否 | String | 查询的数据类型,攻击检测为“attack_detect” |
| 参数名称 | 类型 | 描述 |
|---|---|---|
| VulnerabilityList | Array of ApmMetricRecord | 包含漏洞指标以及业务系统个数 |
| VulnerabilityCount | Integer | 总漏洞个数 |
| ImportantVulnerabilityCount | Integer | 严重漏洞个数 |
| CriticalVulnerabilityCount | Integer | 高危漏洞个数 |
| RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
成功示例
POST / HTTP/1.1
Host: apm.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeApmVulnerabilityCount
<公共请求参数>
{
"InstanceId": "apm-ewyzCXlxj",
"ServiceName": "java-order-service",
"StartTime": 1729226000,
"EndTime": 1729226657
}
{
"Response": {
"CriticalVulnerabilityCount": 1,
"ImportantVulnerabilityCount": 0,
"RequestId": "164a8edf-7267-4f20-9c55-e7b97c3e0ec4",
"VulnerabilityCount": 1,
"VulnerabilityList": [
{
"Fields": [
{
"CompareVal": "",
"CompareVals": null,
"Key": "instance_count",
"LastPeriodValue": null,
"Unit": "",
"Value": 1
}
],
"Tags": [
{
"Key": "instrumentation.name",
"Value": "tomcat"
},
{
"Key": "version",
"Value": "10.9.0"
},
{
"Key": "cve.id",
"Value": "CVE-0000-2222"
},
{
"Key": "level",
"Value": "critical"
},
{
"Key": "score",
"Value": "15"
},
{
"Key": "vul.name",
"Value": "漏洞名称"
}
]
}
]
}
}
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。
| 错误码 | 描述 |
|---|---|
| FailedOperation | 操作失败。 |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback