网页防篡改防护配置修改
接口功能介绍
防护配置修改
接口约束
此功能为收费功能。确认已经网页防篡改配额,并且开启防篡改扫描配置。如果没有购买配额,可按照页面提示进行购买。如果没有开启防护,请在服务器列表页开启机器防护
URI
POST /v1/tamperproof/config/update
路径参数
无
Query参数
无
请求参数
请求头header参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
regionid | 是 | String | 资源池id | 100054c0416811e9a6690242ac110002 | |
urlType | 是 | String | 请求地址类型。CTAPI | CTAPI | |
Content-Type | 是 | String | Content-Type | application/json |
请求体body参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
custName | 是 | String | 防护服务器名称 | 测试配置 | |
serverIp | 是 | String | 防护服务器IP | 166.0.0.2 | |
agentGuid | 是 | String | 服务器对应guid | 121212121212 | |
os | 是 | String | 操作系统 | linux | |
secureStatus | 是 | Byte | 服务器防护状态,0:关闭防护、1:开启防护 | ||
tamperproofDirectoryConfigList | 是 | Array of Objects | tamperproofDirectoryConfigList | list |
表 list
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
agentGuid1 | 是 | String | 服务器对应guid | 121212121212 | |
serverIp1 | 是 | String | 服务器ip | 166.0.0.2 | |
fileType | 是 | String | 文件类型,黑名单防护/白名单排除文件类型,各类型通过 | 分割,以 结尾,例如:.log$ | ||
secureType | 是 | Byte | 防护类型,0:白名单、1:黑名单 | ||
secureDirectory | 是 | String | 防护目录 | /opt/backup | |
backupDirectory | 是 | String | 本地备份目录 | /opt/exclude | |
excludeDirectory | 是 | String | 排除目录 | /opt/exclude | |
excludeFile | 是 | String | 排除指定文件 | x.jsp$\ |
响应参数
参数 | 参数类型 | 说明 | 示例 | 下级对象 | |
---|---|---|---|---|---|
statusCode | String | 状态码 200-成功 | |||
error | String | 返回码CTCSSCN_000000 :成功;CTCSSCN_000001:失败;CTCSSCN_000003:用户未签署协议,安全卫士系统无法正常使用;CTCSSCN_000004:鉴权错误;CTCSSCN_000005:用户没有付费版配额,功能不可用 | CTCSSCN_000000 | ||
message | String | 返回信息 | 成功 | ||
returnObj | Object | 返回对象 |
枚举参数
无
请求示例
请求url
无
请求头header
{"regionid": "100054c0416811e9a6690242ac110002","Content-Type":"application/json","urlType": "CTAPI"}
请求体body
{"ctyunUserId": "1","autoRepair": 0,"os": "linux","secureStatus": 0,"serverIp": "166.0.0.2","serverName": "EOP修改测试--","agentGuid":"121212121212","quotaId":"w1","tamperproofDirectoryConfigList": [{"backupDirectory": "/opt/backup33","excludeDirectory": "/opt/exclude","excludeFile": "x.jsp$|x.png$|x.gif$","fileType": ".jpeg$","secureDirectory": "/opt/project","secureType": 0,"agentGuid":"121212121212","serverIp": "166.0.0.2"},{"backupDirectory": "/opt/backup33","excludeDirectory": "/opt/exclude1|/opt/exclude2","excludeFile": "xxx.jsp$","fileType": ".jpeg$|.jsp$|.png$|.gif$","secureDirectory": "/opt/project1","secureType": 0,"agentGuid":"121212121212","serverIp": "166.0.0.2"}]}
响应示例
{"statusCode": "200","error": "CTCSSCN_000000","message": "查询成功!","returnObj": 1}