接口功能介绍
按天统计最近7日、14天、30天内入侵检测、漏洞风险、安全基线、网页防篡改、病毒查杀风险个数。
接口约束
此功能为收费功能。确认已经购买服务器配额,并且开启服务器防护。如果没有购买配额,可按照页面提示进行购买。如果没有开启防护,请在服务器列表页开启机器防护。
URI
POST /v1/index/trend
路径参数
无
Query参数
无
请求参数
请求头header参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
regionid | 是 | String | 资源池id | 100054c0416811e9a6690242ac110002 | |
urlType | 是 | String | 请求地址类型。CTAPI | CTAPI | |
Content-Type | 是 | String | Content-Type | application/json |
请求体body参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
type | 否 | Integer | 时间段类型 1:一周内 2:两周内 3:30天内,默认7天内 |
1 |
响应参数
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
statusCode | String | 状态码 200-成功 | ||
error | String | 返回码 CTCSSCN_000000 :成功; CTCSSCN_000001:失败; CTCSSCN_000003:用户未签署协议,安全卫士系统无法正常使用; CTCSSCN_000004:鉴权错误; CTCSSCN_000005:用户没有付费版配额,功能不可用 |
CTCSSCN_000000 | |
message | String | 返回信息 | 成功 | |
returnObj | Object | 返回对象 |
表 map
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
vulnerabilityCount | Array of Objects | 漏洞风险统计信息 | object | |
sshCount | Array of Objects | 入侵检测统计信息 | object | |
wpCount | Array of Objects | 网页防篡改统计信息 | object | |
scaCount | Array of Objects | 基线扫描(收费版新增) | object | |
virusCount | Array of Objects | 病毒查杀(收费版新增) | object |
表 object
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
id | String | 日期 | 2022-10-11 | |
sum | Integer | 风险个数 | 0 |
枚举参数
无
请求示例
请求url
无
请求头header
{"regionid": "100054c0416811e9a6690242ac110002","Content-Type":"application/json","urlType": "CTAPI"}
请求体body
{"type":1}
响应示例
{"statusCode": "200","error": "CTCSSCN_000000","message": "查询成功!","returnObj": {"vulnerabilityCount": [{"id": "2022-10-11","sum": 0},{"id": "2022-10-12","sum": 0},{"id": "2022-10-13","sum": 0},{"id": "2022-10-14","sum": 0},{"id": "2022-10-15","sum": 0},{"id": "2022-10-16","sum": 0},{"id": "2022-10-17","sum": 0}],"sshCount": [{"id": "2022-10-11","sum": 0},{"id": "2022-10-12","sum": 0},{"id": "2022-10-13","sum": 0},{"id": "2022-10-14","sum": 0},{"id": "2022-10-15","sum": 0},{"id": "2022-10-16","sum": 0},{"id": "2022-10-17","sum": 0}],"wpCount": [{"id": "2022-10-11","sum": 0},{"id": "2022-10-12","sum": 0},{"id": "2022-10-13","sum": 0},{"id": "2022-10-14","sum": 0},{"id": "2022-10-15","sum": 0},{"id": "2022-10-16","sum": 0},{"id": "2022-10-17","sum": 0}],"scaCount": [{"id": "2022-10-11","sum": 0},{"id": "2022-10-12","sum": 0},{"id": "2022-10-13","sum": 0},{"id": "2022-10-14","sum": 0},{"id": "2022-10-15","sum": 0},{"id": "2022-10-16","sum": 0},{"id": "2022-10-17","sum": 0}],"virusCount": [{"id": "2022-10-11","sum": 0},{"id": "2022-10-12","sum": 0},{"id": "2022-10-13","sum": 0},{"id": "2022-10-14","sum": 0},{"id": "2022-10-15","sum": 0},{"id": "2022-10-16","sum": 0},{"id": "2022-10-17","sum": 0}]},"success": false}
状态码
请参考 状态码
错误码
请参考 错误码