查询网页防篡改配置列表
更新时间 2025-12-25 11:48:39
最近更新时间: 2025-12-25 11:48:39
接口功能介绍
防护配置列表查询
接口约束
此功能为收费功能。确认已经购买网页防篡改配额,并且开启防篡改扫描配置。如果没有购买配额,可按照页面提示进行购买。如果没有开启防护,请在服务器列表页开启机器防护
URI
POST /v1/tamperProof/config//
路径参数
| 参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|---|
| pageSize | 是 | Integer | |||
| currentNum | 是 | Integer |
Query参数 无
请求参数
请求头header参数
| 参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|---|
| Content-Type | 是 | String | Content-Type | application/json |
请求体body参数
| 参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|---|
| secureStatus | 否 | Integer | 服务器防护状态,0:关闭防护,1:开启防护 | 1 | |
| likeQueryType | 否 | Integer | 模糊查询类型 1-服务器ip 2-服务器名称 5-agentGuid | 1 | |
| likeQueryParam | 否 | String | 模糊查询参数 |
响应参数
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| error | String | 返回码 | ||
| CTCSSCN_000000:成功 | ||||
| CTCSSCN_000001:失败 | ||||
| CTCSSCN_000003:用户未签署协议,安全卫士系统无法正常使用 | ||||
| CTCSSCN_000004:鉴权错误 | ||||
| CTCSSCN_000005:用户没有付费版配额,功能不可用 | CTCSSCN_000000 | |||
| message | String | 返回信息 | success | |
| returnObj | Object | 返回对象 | returnObj | |
| traceId | String | traceId | asaadasd11111 | |
| statusCode | String | 状态码 200-成功 | 200 | |
| 表 returnObj |
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| total | Integer | 总数 | 100 | |
| list | Array of Objects | 结果集 | list | |
| pageNum | Integer | 当前页 | 1 | |
| pageSize | Integer | 每页的数量 | 10 | |
| 表 list |
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| id | Integer | 主键 | 1 | |
| displayName | String | 实例名称 | test-display-name | |
| serverName | String | 主机名称 | test-host-name | |
| custName | String | 主机名称 | test-host-name | |
| serverIp | String | 防护服务器IP | 192.168.1.1 | |
| guid | String | 服务器对应agentGuid | 111-111-111-111 | |
| agentGuid | String | 服务器对应agentGuid | 111-111-111-111 | |
| os | String | 操作系统 Linux/Windows | Windows | |
| secureStatus | Integer | 服务器防护状态,0:关闭防护,1:开启防护 | 1 | |
| createTime | String | 创建时间 | 2021-07-12 14:51:01 | |
| updateTime | String | 修改时间 | 2021-07-12 14:51:01 | |
| tamperproofDirectoryConfigList | Array of Objects | 防护服务器对应防护目录 | tamperproofDirectoryConfigList | |
| quotaId | String | 配额ID | abdeasaaas | |
| quotaStatus | Integer | 配额状态 1-未绑定 2-绑定中 4-已过期 8-已冻结 16-已退订 32-已销毁 0-无效 | 1 | |
| protectStatus | String | 服务器防护状态,0:关闭防护,1:开启防护 | 1 | |
| failedSecurePath | String | 防护失败路径 | /tmp/ | |
| privilegeProc | String | 特权进程列表,多个进程用英文逗号隔开 | /tmp/ | |
| privilegeChild | String | 是否子进程可信 UNCREDIBLE-不可信 CREDIBLE-可信 | UNCREDIBLE | |
| tamperproofRemoteDirectoryConfigList | Array of Objects | 远端备份服务器对应配置列表 | tamperproofRemoteDirectoryConfigList | |
| 表 tamperproofRemoteDirectoryConfigList |
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| custName | String | 主机名称 | test-server-name | |
| id | Integer | 主键 | 1 | |
| guid | String | 被防护服务器对应agentGuid | 111-111-111-111 | |
| remoteGuid | String | 远端备份服务器GUID | 111-111-111-111 | |
| remoteServerIp | String | 远端备份服务器私网ip | 192.168.1.1 | |
| backupDirectory | String | 远端备份目录,字符串反转后进行base64编码,如abc,变成 cba后,用base64编码 | bWl2L25pYi9yc3Uv | |
| remotePort | Integer | 远端备份服务器端口 | 15551 | |
| createTime | String | 创建时间 | 2025-10-10 00:00:00 | |
| updateTime | String | 修改时间 | 2025-10-10 00:00:00 | |
| 表 tamperproofDirectoryConfigList |
| 参数 | 参数类型 | 说明 | 示例 | 下级对象 |
|---|---|---|---|---|
| id | Integer | 主键 | 1 | |
| serverIp | String | 防护服务器IP | 192.168.1.1 | |
| guid | String | 服务器对应agentGuid | 111-111-111-111 | |
| agentGuid | String | 服务器对应agentGuid | 111-111-111-111 | |
| secureType | Integer | 防护类型 0:白名单,1:黑名单 | 0 | |
| fileType | String | 白名单防护/黑名单排除文件类型,各类型通过 | 分割 | .exe |
| secureDirectory | String | 防护目录 | /home/test/test | |
| backupDirectory | String | 本地备份目录 | /home/test/backup | |
| excludeDirectory | String | 排除目录,多个目录通过 | 分割 | /home/test/exclude |
| excludeFile | String | 排除指定文件,多文件通过 | 分割 | test.exe |
| distributeStatus | Integer | 分发状态 0-未分发 1-分发中 2-分发成功 3-分发失败 | 0 | |
| createTime | String | 创建时间 | 2025-10-10 00:00:00 | |
| updateTime | String | 修改时间 | 2025-10-10 00:00:00 |
枚举参数
无
请求示例
请求url
无
请求头header
{"Content-Type": "application/json"}
请求体body
{"secureStatus": "1", "likeQueryType": 1, "likeQueryParam": ""}
响应示例
{"message": "success", "traceId": "asaadasd11111", "statusCode": "200", "error": "CTCSSCN_000000", "returnObj": {"total": 100, "list": [{"id": 1, "displayName": "test-display-name", "serverName": "test-host-name", "custName": "test-host-name", "serverIp": "192.168.1.1", "guid": "111-111-111-111", "agentGuid": "111-111-111-111", "os": "Windows", "secureStatus": "1", "createTime": "2021-07-12 14:51:01", "updateTime": "2021-07-12 14:51:01", "tamperproofDirectoryConfigList": [{"id": 1, "serverIp": "192.168.1.1", "guid": "111-111-111-111", "agentGuid": "111-111-111-111", "secureType": "0", "fileType": ".exe|.dll|.so|.py|.sh|.pl|.php|.cgi|.jar|", "secureDirectory": "/home/test/test", "backupDirectory": "/home/test/backup", "excludeDirectory": "/home/test/exclude|/home/test/exclude2", "excludeFile": "test.exe|test.dll", "distributeStatus": "0", "createTime": "2025-10-10 00:00:00", "updateTime": "2025-10-10 00:00:00"}], "quotaId": "abdeasaaas", "quotaStatus": 1, "protectStatus": "1", "failedSecurePath": "/tmp/", "privilegeProc": "/tmp/", "privilegeChild": "UNCREDIBLE", "tamperproofRemoteDirectoryConfigList": [{"custName": "test-server-name", "id": 1, "guid": "111-111-111-111", "remoteGuid": "111-111-111-111", "remoteServerIp": "192.168.1.1", "backupDirectory": "bWl2L25pYi9yc3Uv", "remotePort": 15551, "createTime": "2025-10-10 00:00:00", "updateTime": "2025-10-10 00:00:00"}]}], "pageNum": 1, "pageSize": 10}}
状态码
请参考 状态码
错误码
请参考 错误码