Download OpenAPI specification:
来源于 ikuai-doc/openapi_specs/security/。
为避免 Redoc 单页一次性加载全部 API 导致浏览器 heap 过高,部署版按分类拆分。
获取应用协议控制策略列表,支持分页和过滤查询
| page | integer >= 1 Default: 1 页码(从1开始) |
| limit | integer >= 1 Default: 20 每页记录数 |
| filter | string Example: filter=enabled==yes&action==drop 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
支持的字段:enabled、action、app_proto、prio等 使用示例:
|
| order | string Default: "prio" Enum: "prio" "id" "create_time" 排序字段(prio, id, create_time等) |
| order_by | string Default: "asc" Enum: "asc" "desc" 排序方式(asc:升序, desc:降序) |
{- "message": "Success",
- "results": {
- "total": 1,
- "data": [
- {
- "id": 2,
- "enabled": "yes",
- "tagname": "11",
- "comment": "",
- "prio": 31,
- "action": "drop",
- "app_proto": {
- "custom": [
- "其它HTTP",
- "文件传输"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "src_addr": {
- "custom": [
- "192.168.1.100"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "dst_addr": {
- "custom": [
- "192.168.1.100"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "time": {
- "custom": [
- {
- "type": "weekly",
- "start_time": "00:00",
- "end_time": "10:00",
- "weekdays": "1"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}, - "name": "未知应用,常用协议",
- "mac": "08:9b:4b:00:10:6e",
- "expires": 0
}
]
}
}创建新的应用协议控制策略,支持多种应用协议识别和控制动作
应用协议控制策略配置数据
| enabled required | string Enum: "yes" "no" 规则状态 |
| tagname required | string [ 1 .. 15 ] characters ^[\\u4e00-\\u9fa5a-zA-Z0-9][\\u4e00-\\u9fa5a-... 名称,支持中文、英文、数字、下划线和连字符,1-15个字符,不能以下划线或连字符开头 |
| comment | string <= 64 characters 备注信息,最多64个字符,不支持特殊字符 |
| prio required | integer [ 0 .. 63 ] 规则优先级(0~63, 0最高) |
| action required | string Enum: "accept" "drop" 动作类型 |
required | object (security_security_acl_l7_AppProtocolObject) |
object (security_security_acl_l7_AddressObject) | |
object (security_security_acl_l7_AddressObject) | |
object (security_security_acl_l7_TimeObject) |
{- "enabled": "yes",
- "comment": "",
- "prio": 31,
- "action": "drop",
- "app_proto": {
- "custom": [
- "其它HTTP",
- "文件传输",
- "DNS",
- "Baidu"
]
}, - "src_addr": "",
- "time": {
- "custom": [
- {
- "start_time": "00:00",
- "comment": "test11",
- "end_time": "10:00",
- "type": "weekly",
- "weekdays": "1"
}
]
}, - "dst_addr": "",
- "tagname": "33"
}{- "code": 0,
- "message": "success",
- "rowid": 1
}根据ID获取指定的应用协议控制策略详情
| id required | integer >= 1 应用协议控制策略ID |
{- "message": "Success",
- "results": {
- "id": 2,
- "enabled": "yes",
- "tagname": "11",
- "comment": "",
- "prio": 31,
- "action": "drop",
- "app_proto": {
- "custom": [
- "其它HTTP",
- "文件传输"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "src_addr": {
- "custom": [
- "192.168.1.100"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "dst_addr": {
- "custom": [
- "192.168.1.100"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "time": {
- "custom": [
- {
- "type": "weekly",
- "start_time": "00:00",
- "end_time": "10:00",
- "weekdays": "1"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}, - "name": "未知应用,常用协议",
- "mac": "08:9b:4b:00:10:6e",
- "expires": 0
}
}完整更新指定的应用协议控制策略配置
注意: 本接口为全量修改,请求时需传入所有字段。无需修改的字段请保持原值或传空值,未传入的字段可能被重置。
| id required | integer >= 1 应用协议控制策略ID |
应用协议控制策略更新数据
| enabled required | string Enum: "yes" "no" 规则状态 |
| tagname required | string [ 1 .. 15 ] characters ^[\\u4e00-\\u9fa5a-zA-Z0-9][\\u4e00-\\u9fa5a-... 名称,支持中文、英文、数字、下划线和连字符,1-15个字符,不能以下划线或连字符开头 |
| comment required | string <= 64 characters 备注信息,最多64个字符,不支持特殊字符 |
| prio required | integer [ 0 .. 63 ] 规则优先级(0~63, 0最高) |
| action required | string Enum: "accept" "drop" 动作类型 |
required | object (security_security_acl_l7_AppProtocolObject) |
required | object (security_security_acl_l7_AddressObject) |
required | object (security_security_acl_l7_AddressObject) |
object (security_security_acl_l7_TimeObject) |
{- "enabled": "yes",
- "comment": "",
- "prio": 31,
- "action": "drop",
- "app_proto": {
- "custom": [
- "其它HTTP",
- "文件传输",
- "DNS",
- "Baidu"
]
}, - "src_addr": "",
- "time": {
- "custom": [
- {
- "start_time": "00:00",
- "comment": "test11",
- "end_time": "10:00",
- "type": "weekly",
- "weekdays": "1"
}
]
}, - "dst_addr": "",
- "tagname": "33"
}{- "code": 0,
- "message": "success"
}切换应用协议控制策略的启用状态
| id required | integer >= 1 应用协议控制策略ID |
策略状态
| enabled required | string Enum: "yes" "no" 策略状态 |
{- "enabled": "yes"
}{- "code": 0,
- "message": "success"
}配置MAC访问控制模式,可选择黑名单模式或白名单模式。
注意: 本接口为全量修改,请求时需传入所有字段。无需修改的字段请保持原值或传空值,未传入的字段可能被重置。
MAC访问控制模式配置
| acl_mac required | integer Enum: 0 1 MAC访问控制模式 |
{- "acl_mac": 1
}{- "message": "Success"
}获取MAC地址黑白名单策略列表,支持分页和过滤查询
| page | integer >= 1 Default: 1 页码(从1开始) |
| limit | integer >= 1 Default: 20 每页记录数 |
| filter | string Example: filter=enabled==yes&mac==08:9b:4b:00:10:2e 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
支持的字段:enabled、mac、tagname、expires等 使用示例:
|
| order | string Default: "id" Enum: "id" "create_time" "mac" 排序字段(id, create_time等) |
| order_by | string Default: "asc" Enum: "asc" "desc" 排序方式(asc:升序, desc:降序) |
{- "message": "Success",
- "results": {
- "total": 2,
- "data": [
- {
- "id": 1,
- "mac": "08:9b:4b:00:10:2e",
- "enabled": "yes",
- "tagname": "aaaa",
- "comment": "111",
- "time": {
- "custom": [
- {
- "type": "weekly",
- "start_time": "00:00",
- "end_time": "20:00",
- "weekdays": "1234567",
- "comment": "工作时间段"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}, - "expires": 0,
- "termname": ""
}
]
}
}创建新的MAC地址黑白名单策略,支持时间规则控制
MAC策略配置数据
| mac required | string^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$ MAC地址 |
| enabled required | string Enum: "yes" "no" 策略状态 |
| tagname required | string 名称,支持中文、英文、数字、下划线和连字符,1-15个字符,不能以下划线或连字符开头 |
| comment | string 备注信息,最多64个字符,不支持特殊字符 |
object (security_security_acl_mac_TimeObject) | |
| expires required | integer >= 0 Default: 0 到期时间,Unix时间戳,0表示永不过期 |
| termname | string 终端名称 |
{- "mac": "08:9b:4b:00:10:2e",
- "enabled": "yes",
- "comment": "111",
- "time": {
- "custom": [
- {
- "type": "weekly",
- "weekdays": "1234567",
- "start_time": "00:00",
- "end_time": "20:00",
- "comment": "test11"
}, - {
- "type": "date",
- "start_time": "2026-05-01T08:00",
- "end_time": "2026-05-10T08:00",
- "comment": "test11"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}, - "tagname": "aaaa"
}{- "code": 0,
- "message": "success",
- "rowid": 1
}根据ID获取指定的MAC策略详情
| id required | integer >= 1 MAC策略ID |
{- "message": "Success",
- "results": {
- "id": 1,
- "mac": "08:9b:4b:00:10:2e",
- "enabled": "yes",
- "tagname": "aaaa",
- "comment": "111",
- "time": {
- "custom": [
- {
- "type": "weekly",
- "start_time": "00:00",
- "end_time": "20:00",
- "weekdays": "1234567",
- "comment": "工作时间段"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}, - "expires": 0,
- "termname": ""
}
}完整更新指定的MAC策略配置
注意: 本接口为全量修改,请求时需传入所有字段。无需修改的字段请保持原值或传空值,未传入的字段可能被重置。
| id required | integer >= 1 MAC策略ID |
MAC策略更新数据
| mac required | string^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$ MAC地址 |
| enabled required | string Enum: "yes" "no" 策略状态 |
| tagname required | string 名称,支持中文、英文、数字、下划线和连字符,1-15个字符,不能以下划线或连字符开头 |
| comment | string 备注信息,最多64个字符,不支持特殊字符 |
object (security_security_acl_mac_TimeObject) | |
| expires required | integer >= 0 Default: 0 到期时间,Unix时间戳,0表示永不过期 |
| termname | string 终端名称 |
{- "mac": "08:9b:4b:00:10:2e",
- "enabled": "yes",
- "comment": "111",
- "expires": 0,
- "time": {
- "custom": [
- {
- "type": "weekly",
- "weekdays": "1234567",
- "start_time": "00:00",
- "end_time": "20:00",
- "comment": "test11"
}, - {
- "type": "date",
- "start_time": "2026-05-01T08:00",
- "end_time": "2026-05-10T08:00",
- "comment": "test11"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}, - "tagname": "aaaa"
}{- "code": 0,
- "message": "success"
}切换MAC策略的启用状态
| id required | integer >= 1 MAC策略ID |
策略状态
| enabled required | string Enum: "yes" "no" 策略状态 |
{- "enabled": "yes"
}{- "code": 0,
- "message": "success"
}获取ACL访问控制策略列表,支持分页和过滤查询
| page | integer >= 1 Default: 1 页码(从1开始) |
| limit | integer >= 1 Default: 20 每页记录数 |
| filter | string Example: filter=enabled==yes&action==drop 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
支持的字段:enabled、action、protocol、ip_type、dir、prio等 使用示例:
|
| order | string Default: "prio" Enum: "prio" "create_time" "id" 排序字段(prio, create_time等) |
| order_by | string Default: "asc" Enum: "asc" "desc" 排序方式(asc:升序, desc:降序) |
{- "message": "Success",
- "results": {
- "total": 1,
- "data": [
- {
- "id": 1,
- "action": "drop",
- "dir": "forward",
- "ctdir": 0,
- "iinterface": "any",
- "ointerface": "any",
- "src_addr": {
- "custom": "192.168.9.169",
- "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "src_addr_inv": 0,
- "dst_addr": {
- "custom": "192.168.9.169",
- "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "dst_addr_inv": 0,
- "src_type": 0,
- "src_area_code": "CN",
- "dst_type": 0,
- "dst_area_code": "US",
- "src6_addr": {
- "custom": "192.168.9.169",
- "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "dst6_addr": {
- "custom": "192.168.9.169",
- "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "src6_mode": 1,
- "dst6_mode": 0,
- "src6_suffix": "::abcd::ffff",
- "dst6_suffix": "",
- "prio": 10,
- "protocol": "any",
- "src_port": {
- "custom": "80,443",
- "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "dst_port": {
- "custom": "80,443",
- "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "time": {
- "custom": [
- {
- "type": "weekly",
- "start_time": "00:00",
- "end_time": "20:00",
- "weekdays": "1234567",
- "comment": "工作时间段"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}, - "ip_type": "4",
- "enabled": "yes",
- "comment": "hylitest",
- "tagname": "acl33"
}
]
}
}创建新的ACL访问控制策略,支持IPv4/IPv6地址、协议、端口等条件的过滤控制
ACL策略配置数据
| action required | string Enum: "accept" "drop" 动作 |
| dir required | string Enum: "input" "forward" 流量方向 |
| ctdir required | integer Default: 0 Enum: 0 1 2 连接方向匹配(0:关闭, 1:ORIGINAL方向, 2:REPLY方向) |
| iinterface required | string 入接口 |
| ointerface required | string 出接口 |
object (security_security_acl_AddressObject) | |
| src_addr_inv required | integer Default: 0 Enum: 0 1 源地址取反(0:不取反, 1:取反) |
object (security_security_acl_AddressObject) | |
| dst_addr_inv required | integer Default: 0 Enum: 0 1 目的地址取反(0:不取反, 1:取反) |
| src_type | integer Default: 0 Enum: 0 1 源类型(0:IP, 1:IP归属地) |
| src_area_code | string 源地区归属地代码(国家/省/市代码) |
| dst_type | integer Default: 0 Enum: 0 1 目的类型(0:IP, 1:IP归属地) |
| dst_area_code | string 目的地区归属地代码 |
object (security_security_acl_AddressObject) | |
object (security_security_acl_AddressObject) | |
| src6_mode required | integer Default: 0 Enum: 0 1 IPv6源后缀匹配(0:关闭, 1:开启) |
| dst6_mode required | integer Default: 0 Enum: 0 1 IPv6目的后缀匹配(0:关闭, 1:开启) |
| src6_suffix | string IPv6后缀源地址 |
| dst6_suffix | string IPv6后缀目的地址 |
| prio required | integer [ 0 .. 63 ] 优先级(0-63, 0最高) |
| protocol required | string Enum: "tcp" "udp" "tcp+udp" "icmp" "gre" "any" "icmpv6" 协议类型,IPv4支持:tcp/udp/tcp+udp/icmp/gre/any;IPv6支持:tcp/udp/icmpv6/any |
object (security_security_acl_PortObject) | |
object (security_security_acl_PortObject) | |
object (security_security_acl_TimeObject) | |
| ip_type required | string Enum: "4" "6" IP类型 |
| enabled required | string Enum: "yes" "no" 策略状态 |
| comment | string <= 64 characters 备注信息,最多64个字符,不支持特殊字符 |
| tagname required | string [ 1 .. 15 ] characters 名称,支持中文、英文、数字、下划线和连字符,1-15个字符,不能以下划线或连字符开头 |
{- "protocol": "any",
- "action": "drop",
- "dir": "forward",
- "ctdir": 0,
- "iinterface": "any",
- "ointerface": "any",
- "src_addr": {
- "custom": [
- "192.168.9.169",
- "08:9b:4b:00:10:6e"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}, - {
- "type": 2,
- "gp_name": "22",
- "gid": "MACIP1"
}
]
}, - "src_addr_inv": 0,
- "dst_addr": "",
- "dst_addr_inv": 0,
- "dst_port": "",
- "src_type": 0,
- "dst_type": 0,
- "comment": "hylitest",
- "enabled": "yes",
- "ip_type": "4",
- "src6_addr": "",
- "dst6_addr": "",
- "src6_mode": 1,
- "dst6_mode": 0,
- "src6_suffix": "::abcd::ffff",
- "dst6_suffix": "",
- "src_area_code": "",
- "dst_area_code": "",
- "prio": 10,
- "time": {
- "custom": [
- {
- "type": "weekly",
- "weekdays": "1234567",
- "start_time": "00:00",
- "end_time": "20:00",
- "comment": "test11"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}, - "tagname": "053"
}{- "code": 0,
- "message": "success",
- "rowid": 1
}根据ID获取指定的ACL策略详情
| id required | integer >= 1 ACL策略ID |
{- "message": "Success",
- "results": {
- "id": 1,
- "action": "drop",
- "dir": "forward",
- "ctdir": 0,
- "iinterface": "any",
- "ointerface": "any",
- "src_addr": {
- "custom": "192.168.9.169",
- "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "src_addr_inv": 0,
- "dst_addr": {
- "custom": "192.168.9.169",
- "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "dst_addr_inv": 0,
- "src_type": 0,
- "src_area_code": "CN",
- "dst_type": 0,
- "dst_area_code": "US",
- "src6_addr": {
- "custom": "192.168.9.169",
- "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "dst6_addr": {
- "custom": "192.168.9.169",
- "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "src6_mode": 1,
- "dst6_mode": 0,
- "src6_suffix": "::abcd::ffff",
- "dst6_suffix": "",
- "prio": 10,
- "protocol": "any",
- "src_port": {
- "custom": "80,443",
- "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "dst_port": {
- "custom": "80,443",
- "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "time": {
- "custom": [
- {
- "type": "weekly",
- "start_time": "00:00",
- "end_time": "20:00",
- "weekdays": "1234567",
- "comment": "工作时间段"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}, - "ip_type": "4",
- "enabled": "yes",
- "comment": "hylitest",
- "tagname": "acl33"
}
}完整更新指定的ACL策略配置。
注意: 本接口为全量修改,请求时需传入所有字段。无需修改的字段请保持原值或传空值,未传入的字段可能被重置。
| id required | integer >= 1 ACL策略ID |
ACL策略更新数据(全量修改,所有字段必填)
| action required | string Enum: "accept" "drop" 动作 |
| dir required | string Enum: "input" "forward" 流量方向 |
| ctdir required | integer Enum: 0 1 2 连接方向匹配(0:关闭, 1:ORIGINAL方向, 2:REPLY方向) |
| iinterface required | string 入接口 |
| ointerface required | string 出接口 |
required | object (security_security_acl_AddressObject) |
required | object (security_security_acl_AddressObject) |
| src_addr_inv required | integer Enum: 0 1 源地址取反(0:不取反, 1:取反) |
| dst_addr_inv required | integer Enum: 0 1 目的地址取反(0:不取反, 1:取反) |
| src_type required | integer Enum: 0 1 源类型(0:IP, 1:IP归属地) |
| src_area_code required | string 源地区归属地代码 |
| dst_type required | integer Enum: 0 1 目的类型(0:IP, 1:IP归属地) |
| dst_area_code required | string 目的地区归属地代码 |
required | object (security_security_acl_AddressObject) |
required | object (security_security_acl_AddressObject) |
| src6_mode required | integer Enum: 0 1 IPv6源后缀匹配(0:关闭, 1:开启) |
| dst6_mode required | integer Enum: 0 1 IPv6目的后缀匹配(0:关闭, 1:开启) |
| src6_suffix required | string IPv6后缀源地址 |
| dst6_suffix required | string IPv6后缀目的地址 |
| prio required | integer [ 0 .. 63 ] 优先级(0-63, 0最高) |
| protocol required | string Enum: "tcp" "udp" "tcp+udp" "icmp" "gre" "any" "icmpv6" 协议类型,IPv4支持:tcp/udp/tcp+udp/icmp/gre/any;IPv6支持:tcp/udp/icmpv6/any |
required | object (security_security_acl_PortObject) |
required | object (security_security_acl_PortObject) |
required | object (security_security_acl_TimeObject) |
| ip_type required | string Enum: "4" "6" IP类型 |
| enabled required | string Enum: "yes" "no" 策略状态 |
| comment required | string <= 64 characters 备注信息,最多64个字符,不支持特殊字符 |
| tagname required | string [ 1 .. 15 ] characters 名称,支持中文、英文、数字、下划线和连字符,1-15个字符,不能以下划线或连字符开头 |
{- "enabled": "yes",
- "comment": "hylitest",
- "dir": "forward",
- "ctdir": 0,
- "action": "drop",
- "iinterface": "any",
- "ointerface": "any",
- "src_addr": {
- "custom": [
- "192.168.9.169"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "dst_addr": "",
- "src_addr_inv": 0,
- "dst_addr_inv": 0,
- "protocol": "any",
- "src_port": "",
- "dst_port": "",
- "time": {
- "custom": [
- {
- "type": "weekly",
- "weekdays": "1234567",
- "start_time": "00:00",
- "end_time": "20:00",
- "comment": "test11"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}, - "ip_type": "4",
- "src6_addr": "",
- "dst6_addr": "",
- "src6_mode": 0,
- "dst6_mode": 0,
- "src6_suffix": "",
- "dst6_suffix": "",
- "src_type": 0,
- "src_area_code": "",
- "dst_type": 0,
- "dst_area_code": "",
- "prio": 10,
- "tagname": "053"
}{- "code": 0,
- "message": "success"
}切换ACL策略的启用状态
| id required | integer >= 1 ACL策略ID |
策略状态
| enabled required | string Enum: "yes" "no" 策略状态 |
{- "enabled": "yes"
}{- "code": 0,
- "message": "success"
}{- "message": "Success",
- "results": {
- "data": [
- {
- "id": 1,
- "noping_lan": 0,
- "noping_wan": 1,
- "notracert": 0,
- "hijack_ping": 0,
- "invalid": 0,
- "dos_lan": 1,
- "dos_lan_num": 300,
- "tcp_mss": 1,
- "tcp_mss_num": 1400
}
]
}
}更新安全中心的高级设置参数,包括各种网络安全防护和连接限制配置
注意: 本接口为全量修改,请求时需传入所有字段。无需修改的字段请保持原值或传空值,未传入的字段可能被重置。
安全中心高级设置配置数据
| noping_lan required | integer Default: 0 Enum: 0 1 禁止内网Ping(0:禁用, 1:启用) |
| noping_wan required | integer Default: 0 Enum: 0 1 禁止外网Ping(0:禁用, 1:启用) |
| notracert required | integer Default: 0 Enum: 0 1 禁止tracert追踪(0:禁用, 1:启用) |
| hijack_ping required | integer Default: 0 Enum: 0 1 劫持Ping(0:禁用, 1:启用) |
| invalid required | integer Default: 0 Enum: 0 1 禁止无效链接(0:禁用, 1:启用) |
| dos_lan required | integer Default: 0 Enum: 0 1 内网DOS防御(0:禁用, 1:启用) |
| dos_lan_num required | integer [ 1 .. 10000 ] Default: 300 内网DOS连接数限制 |
| tcp_mss required | integer Default: 1 Enum: 0 1 启用TCPMSS最大报文长度(0:禁用, 1:启用) |
| tcp_mss_num required | integer [ 500 .. 1500 ] Default: 1400 TCPMSS最大报文长度 |
{- "noping_lan": 0,
- "noping_wan": 1,
- "notracert": 0,
- "hijack_ping": 0,
- "invalid": 1,
- "dos_lan": 1,
- "dos_lan_num": 500,
- "tcp_mss": 1,
- "tcp_mss_num": 1460
}{- "code": 0,
- "message": "Success"
}获取域名黑名单策略列表,支持分页和过滤查询
| page | integer >= 1 Default: 1 页码(从1开始) |
| limit | integer >= 1 Default: 20 每页记录数 |
| filter | string Example: filter=enabled==yes&domain_group==购物网站 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
支持的字段:enabled、domain_group、tagname等 使用示例:
|
| order | string Default: "id" Enum: "id" "domain_group" 排序字段(id, domain_group等) |
| order_by | string Default: "asc" Enum: "asc" "desc" 排序方式(asc:升序, desc:降序) |
{- "message": "Success",
- "results": {
- "total": 1,
- "data": [
- {
- "id": 1,
- "enabled": "yes",
- "tagname": "11",
- "comment": "",
- "domain_group": "购物网站",
- "src_addr": {
- "custom": "192.168.9.16",
- "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "time": {
- "custom": [
- {
- "type": "weekly",
- "start_time": "00:00",
- "end_time": "20:00",
- "weekdays": "1234567",
- "comment": "test11"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}
}
]
}
}创建新的域名黑名单策略,支持域名组过滤和时间规则控制
域名黑名单策略配置数据
| enabled required | string Enum: "yes" "no" 规则状态 |
| tagname required | string 名称,支持中文、英文、数字、下划线和连字符,1-15个字符,不能以下划线或连字符开头 |
| comment | string 备注信息,最多64个字符,不支持特殊字符 |
| domain_group required | string 域名分组,多个分组用逗号分隔。可选值:
|
object (security_security_domain_blacklist_AddressObject) | |
object (security_security_domain_blacklist_TimeObject) |
{- "enabled": "yes",
- "comment": "",
- "time": {
- "custom": [
- {
- "type": "weekly",
- "weekdays": "1234567",
- "start_time": "00:00",
- "end_time": "20:00",
- "comment": "test11"
}, - {
- "type": "date",
- "start_time": "2026-05-01T08:00",
- "end_time": "2026-05-10T08:00",
- "comment": "test11"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}, - "domain_group": "购物网站",
- "src_addr": {
- "custom": [
- "192.168.9.16"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "tagname": "11"
}{- "code": 0,
- "message": "success",
- "rowid": 1
}根据ID获取指定的域名黑名单策略详情
| id required | integer >= 1 域名黑名单策略ID |
{- "message": "Success",
- "results": {
- "id": 1,
- "enabled": "yes",
- "tagname": "11",
- "comment": "",
- "domain_group": "购物网站",
- "src_addr": {
- "custom": "192.168.9.16",
- "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "time": {
- "custom": [
- {
- "type": "weekly",
- "start_time": "00:00",
- "end_time": "20:00",
- "weekdays": "1234567",
- "comment": "test11"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}
}
}完整更新指定的域名黑名单策略配置
注意: 本接口为全量修改,请求时需传入所有字段。无需修改的字段请保持原值或传空值,未传入的字段可能被重置。
| id required | integer >= 1 域名黑名单策略ID |
域名黑名单策略更新数据
| enabled required | string Enum: "yes" "no" 规则状态 |
| tagname required | string 名称,支持中文、英文、数字、下划线和连字符,1-15个字符,不能以下划线或连字符开头 |
| comment | string 备注信息,最多64个字符,不支持特殊字符 |
| domain_group required | string 域名分组,多个分组用逗号分隔。可选值:
|
object (security_security_domain_blacklist_AddressObject) | |
object (security_security_domain_blacklist_TimeObject) |
{- "enabled": "yes",
- "tagname": "11",
- "comment": "",
- "domain_group": "购物网站",
- "src_addr": {
- "custom": "192.168.9.16",
- "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "time": {
- "custom": [
- {
- "type": "weekly",
- "start_time": "00:00",
- "end_time": "20:00",
- "weekdays": "1234567",
- "comment": "test11"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}
}{- "code": 0,
- "message": "success"
}切换域名黑名单策略的启用状态
| id required | integer >= 1 域名黑名单策略ID |
策略状态
| enabled required | string Enum: "yes" "no" 策略状态 |
{- "enabled": "yes"
}{- "code": 0,
- "message": "success"
}{- "message": "Success",
- "results": {
- "data": [
- {
- "id": 1,
- "nol2rt": 0,
- "nol2rt_ip": {
- "custom": [
- "192.168.9.168"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "ttl_num": 1,
- "time": ""
}
]
}
}更新网络分享控制策略配置,包括禁止二级路由、IP地址设置、TTL值等参数
注意: 本接口为全量修改,请求时需传入所有字段。无需修改的字段请保持原值或传空值,未传入的字段可能被重置。
网络分享控制策略配置数据
| nol2rt required | integer Default: 0 Enum: 0 1 禁止二级路由开关(0:允许, 1:禁止) |
required | object (security_security_l2_route_AddressObject) |
| ttl_num required | integer [ 1 .. 255 ] Default: 1 自定义TTL值 |
required | object (security_security_l2_route_TimeObject) |
{- "nol2rt": 0,
- "nol2rt_ip": {
- "custom": [
- "192.168.9.168"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "ttl_num": 1,
- "time": ""
}{- "code": 0,
- "message": "Success"
}获取终端设备列表,支持分页和过滤查询
| page | integer >= 1 Default: 1 页码(从1开始) |
| limit | integer >= 1 Default: 20 每页记录数 |
| filter | string Example: filter=mac==08:9b:4b:00:10:6d 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
支持的字段:mac、tagname、comment等 使用示例:
|
| order | string Default: "id" Enum: "id" "mac" "tagname" 排序字段(id, mac, tagname等) |
| order_by | string Default: "asc" Enum: "asc" "desc" 排序方式(asc:升序, desc:降序) |
{- "message": "Success",
- "results": {
- "total": 1,
- "data": [
- {
- "id": 2,
- "mac": "08:9b:4b:00:10:6d",
- "tagname": "test11",
- "comment": "comm_11"
}
]
}
}创建新的终端设备名称记录,支持MAC地址、设备名称和备注信息
终端设备名称配置数据
| mac required | string^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$ MAC地址(唯一) |
| tagname required | string [ 1 .. 15 ] characters ^[\\u4e00-\\u9fa5a-zA-Z0-9][\\u4e00-\\u9fa5a-... 名称,支持中文、英文、数字、下划线和连字符,1-15个字符,不能以下划线或连字符开头 |
| comment | string [ 0 .. 64 ] characters ^[\\u4e00-\\u9fa5a-zA-Z0-9][\\u4e00-\\u9fa5a-... 备注信息,最多64个字符,不支持特殊字符 |
{- "mac": "08:9b:4b:00:10:6d",
- "tagname": "test11",
- "comment": "comm_11"
}{- "code": 0,
- "message": "success",
- "rowid": 1
}完整更新指定的终端设备名称配置
注意: 本接口为全量修改,请求时需传入所有字段。无需修改的字段请保持原值或传空值,未传入的字段可能被重置。
| id required | integer >= 1 终端设备ID |
终端设备名称更新数据
| mac required | string^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$ MAC地址(唯一) |
| tagname required | string [ 1 .. 15 ] characters ^[\\u4e00-\\u9fa5a-zA-Z0-9][\\u4e00-\\u9fa5a-... 名称,支持中文、英文、数字、下划线和连字符,1-15个字符,不能以下划线或连字符开头 |
| comment | string [ 0 .. 64 ] characters ^[\\u4e00-\\u9fa5a-zA-Z0-9][\\u4e00-\\u9fa5a-... 备注信息,最多64个字符,不支持特殊字符 |
{- "mac": "08:9b:4b:00:10:6d",
- "tagname": "test11",
- "comment": "comm_11"
}{- "code": 0,
- "message": "success"
}获取连接数限制策略列表,支持分页和过滤查询
| page | integer >= 1 Default: 1 页码(从1开始) |
| limit | integer >= 1 Default: 20 每页记录数 |
| filter | string Example: filter=enabled==yes&protocol==udp 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
支持的字段:enabled、protocol、limits、tagname、dst_port等 使用示例:
|
| order | string Default: "id" Enum: "id" "limits" 排序字段(id, limits等) |
| order_by | string Default: "asc" Enum: "asc" "desc" 排序方式(asc:升序, desc:降序) |
{- "message": "Success",
- "results": {
- "total": 1,
- "data": [
- {
- "id": 1,
- "enabled": "no",
- "tagname": "conn_limit_44",
- "comment": "111",
- "src_addr": {
- "custom": [
- "192.168.88.50",
- "08:9b:4b:00:10:1e"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "protocol": "udp",
- "dst_port": {
- "custom": [
- "9000",
- "10000-20000"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "limits": 10000,
- "src_addr_int": 4294967295,
- "time": {
- "custom": [
- {
- "type": "weekly",
- "start_time": "00:00",
- "end_time": "20:00",
- "weekdays": "1234567",
- "comment": "test11"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}
}
]
}
}创建新的连接数限制策略,支持协议端口过滤和连接数阈值控制
连接数限制策略配置数据
| enabled required | string Enum: "yes" "no" 规则状态 |
| tagname required | string 名称,支持中文、英文、数字、下划线和连字符,1-15个字符,不能以下划线或连字符开头 |
| comment | string 备注信息,最多64个字符,不支持特殊字符 |
object (security_security_peerconn_AddressObject) | |
| protocol required | string Enum: "tcp" "udp" "any" "icmp" "gre" 协议类型 |
object (security_security_peerconn_PortObject) | |
| limits required | integer [ 1 .. 100000 ] 最大允许连接数限制 |
object (security_security_peerconn_TimeObject) |
{- "enabled": "yes",
- "src_addr": {
- "custom": [
- "192.168.88.50",
- "08:9b:4b:00:10:1e"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "comment": "111",
- "protocol": "udp",
- "dst_port": {
- "custom": [
- "9000",
- "10000-20000"
], - "object": [
- {
- "gid": "PORTGP26",
- "gp_name": "ip55",
- "type": 3
}
]
}, - "time": {
- "custom": [
- {
- "type": "weekly",
- "weekdays": "1234567",
- "start_time": "00:00",
- "end_time": "20:00",
- "comment": "test11"
}, - {
- "type": "date",
- "start_time": "2026-05-01T08:00",
- "end_time": "2026-05-10T08:00",
- "comment": "test11"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}, - "limits": "10000",
- "tagname": "conn_limit_44"
}{- "code": 0,
- "message": "success",
- "rowid": 1
}根据ID获取指定的连接数限制策略详情
| id required | integer >= 1 连接数限制策略ID |
{- "message": "Success",
- "results": {
- "id": 1,
- "enabled": "no",
- "tagname": "conn_limit_44",
- "comment": "111",
- "src_addr": {
- "custom": [
- "192.168.88.50",
- "08:9b:4b:00:10:1e"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "protocol": "udp",
- "dst_port": {
- "custom": [
- "9000",
- "10000-20000"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "limits": 10000,
- "src_addr_int": 4294967295,
- "time": {
- "custom": [
- {
- "type": "weekly",
- "start_time": "00:00",
- "end_time": "20:00",
- "weekdays": "1234567",
- "comment": "test11"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}
}
}完整更新指定的连接数限制策略配置
注意: 本接口为全量修改,请求时需传入所有字段。无需修改的字段请保持原值或传空值,未传入的字段可能被重置。
| id required | integer >= 1 连接数限制策略ID |
连接数限制策略更新数据
| enabled required | string Enum: "yes" "no" 规则状态 |
| tagname required | string 名称,支持中文、英文、数字、下划线和连字符,1-15个字符,不能以下划线或连字符开头 |
| comment | string 备注信息,最多64个字符,不支持特殊字符 |
object (security_security_peerconn_AddressObject) | |
| protocol required | string Enum: "tcp" "udp" "any" "icmp" "gre" 协议类型 |
object (security_security_peerconn_PortObject) | |
| limits required | integer [ 1 .. 100000 ] 最大允许连接数限制 |
object (security_security_peerconn_TimeObject) |
{- "enabled": "yes",
- "src_addr": {
- "custom": [
- "192.168.88.50",
- "08:9b:4b:00:10:1e"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "comment": "111",
- "protocol": "udp",
- "dst_port": {
- "custom": [
- "9000",
- "10000-20000"
], - "object": [
- {
- "gid": "PORTGP26",
- "gp_name": "ip55",
- "type": 3
}
]
}, - "time": {
- "custom": [
- {
- "type": "weekly",
- "weekdays": "1234567",
- "start_time": "00:00",
- "end_time": "20:00",
- "comment": "test11"
}, - {
- "type": "date",
- "start_time": "2026-05-01T08:00",
- "end_time": "2026-05-10T08:00",
- "comment": "test11"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}, - "limits": "10000",
- "tagname": "conn_limit_44"
}{- "code": 0,
- "message": "success"
}切换连接数限制策略的启用状态
| id required | integer >= 1 连接数限制策略ID |
策略状态
| enabled required | string Enum: "yes" "no" 策略状态 |
{- "enabled": "yes"
}{- "code": 0,
- "message": "success"
}获取URL黑白名单策略列表,支持分页和过滤查询
| page | integer >= 1 Default: 1 页码(从1开始) |
| limit | integer >= 1 Default: 20 每页记录数 |
| filter | string Example: filter=enabled==yes&mode==0 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
支持的字段:enabled、mode、tagname、domain等 使用示例:
|
| order | string Default: "id" Enum: "id" "domain" 排序字段(id, domain等) |
| order_by | string Default: "asc" Enum: "asc" "desc" 排序方式(asc:升序, desc:降序) |
{- "message": "Success",
- "results": {
- "total": 1,
- "data": [
- {
- "id": 1,
- "enabled": "yes",
- "tagname": "11",
- "comment": "",
- "mode": 0,
- "domain": {
- "custom": [
- "restapi.amap.com",
- "www.baidu.com"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "src_addr": {
- "custom": [
- "192.168.9.16"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "time": {
- "custom": [
- {
- "type": "weekly",
- "start_time": "00:00",
- "end_time": "20:00",
- "weekdays": "1234567",
- "comment": "test11"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}
}
]
}
}创建新的URL黑白名单策略,支持域名过滤和时间规则控制
URL黑白名单策略配置数据
| enabled required | string Enum: "yes" "no" 规则状态 |
| tagname required | string 名称,支持中文、英文、数字、下划线和连字符,1-15个字符,不能以下划线或连字符开头 |
| comment | string 备注信息,最多64个字符,不支持特殊字符 |
| mode required | string Enum: "0" "1" 模式 |
required | object (security_security_url_black_DomainObject) |
object (security_security_url_black_AddressObject) | |
object (security_security_url_black_TimeObject) |
{- "enabled": "yes",
- "comment": "",
- "domain": {
- "custom": [
- "restapi.amap.com",
- "www.baidu.com"
]
}, - "src_addr": {
- "custom": [
- "192.168.9.16"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "time": {
- "custom": [
- {
- "type": "weekly",
- "weekdays": "1234567",
- "start_time": "00:00",
- "end_time": "20:00",
- "comment": "test11"
}, - {
- "type": "date",
- "start_time": "2026-05-01T08:00",
- "end_time": "2026-05-10T08:00",
- "comment": "test11"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}, - "mode": "0",
- "tagname": "11"
}{- "code": 0,
- "message": "success",
- "rowid": 1
}根据ID获取指定的URL黑白名单策略详情
| id required | integer >= 1 URL黑白名单策略ID |
{- "message": "Success",
- "results": {
- "id": 1,
- "enabled": "yes",
- "tagname": "11",
- "comment": "",
- "mode": 0,
- "domain": {
- "custom": [
- "restapi.amap.com",
- "www.baidu.com"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "src_addr": {
- "custom": [
- "192.168.9.16"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "time": {
- "custom": [
- {
- "type": "weekly",
- "start_time": "00:00",
- "end_time": "20:00",
- "weekdays": "1234567",
- "comment": "test11"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}
}
}完整更新指定的URL黑白名单策略配置
注意: 本接口为全量修改,请求时需传入所有字段。无需修改的字段请保持原值或传空值,未传入的字段可能被重置。
| id required | integer >= 1 URL黑白名单策略ID |
URL黑白名单策略更新数据
| enabled required | string Enum: "yes" "no" 规则状态 |
| comment required | string 备注信息,最多64个字符,不支持特殊字符 |
| tagname required | string 名称,支持中文、英文、数字、下划线和连字符,1-15个字符,不能以下划线或连字符开头 |
| mode required | string Enum: "0" "1" 模式(0=黑名单, 1=白名单) |
required | object (security_security_url_black_DomainObject) |
required | object (security_security_url_black_AddressObject) |
object (security_security_url_black_TimeObject) |
{- "enabled": "yes",
- "comment": "",
- "domain": {
- "custom": [
- "restapi.amap.com",
- "www.baidu.com"
]
}, - "src_addr": {
- "custom": [
- "192.168.9.16"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "time": {
- "custom": [
- {
- "type": "weekly",
- "weekdays": "1234567",
- "start_time": "00:00",
- "end_time": "20:00",
- "comment": "test11"
}, - {
- "type": "date",
- "start_time": "2026-05-01T08:00",
- "end_time": "2026-05-10T08:00",
- "comment": "test11"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}, - "mode": "0",
- "tagname": "11"
}{- "code": 0,
- "message": "success"
}切换URL黑白名单策略的启用状态
| id required | integer >= 1 URL黑白名单策略ID |
策略状态
| enabled required | string Enum: "yes" "no" 策略状态 |
{- "enabled": "yes"
}{- "code": 0,
- "message": "success"
}获取URL关键字替换策略列表,支持分页和过滤查询
| page | integer >= 1 Default: 1 页码(从1开始) |
| limit | integer >= 1 Default: 20 每页记录数 |
| filter | string Example: filter=enabled==yes&mode==exact 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
支持的字段:enabled、mode、ori_keyword、rep_keyword、prio、hit_rate等 使用示例:
|
| order | string Default: "prio" Enum: "prio" "id" 排序字段(prio, id) |
| order_by | string Default: "asc" Enum: "asc" "desc" 排序方式(asc:升序, desc:降序) |
{- "message": "Success",
- "results": {
- "total": 1,
- "data": [
- {
- "id": 1,
- "prio": 1,
- "enabled": "yes",
- "tagname": "444",
- "src_addr": {
- "custom": "192.168.1.100",
- "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "src_url": "192.168.1.253",
- "ori_keyword": "qwe",
- "rep_keyword": "456",
- "mode": "exact",
- "excluded": "",
- "hit_rate": 100,
- "time": {
- "custom": [
- {
- "type": "weekly",
- "start_time": "00:00",
- "end_time": "20:00",
- "weekdays": "1234567",
- "comment": "工作时间段"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}
}
]
}
}创建新的URL关键字替换策略,支持关键字匹配和替换功能
URL关键字替换策略配置数据
| prio required | integer [ 0 .. 63 ] 优先级(0-63,0最高) |
| enabled required | string Enum: "yes" "no" 规则状态 |
| tagname required | string 名称,支持中文、英文、数字、下划线和连字符,1-15个字符,不能以下划线或连字符开头 |
object (security_security_url_keywords_AddressObject) | |
| src_url required | string 源URL |
| ori_keyword required | string 原始关键字 |
| rep_keyword required | string 替换关键字 |
| mode required | string Enum: "exact" "vague" 匹配模式 |
| excluded | string 排除条件 |
| hit_rate required | integer [ 1 .. 100 ] 替换百分比(1-100) |
object (security_security_url_keywords_TimeObject) |
{- "comment": "444",
- "prio": 1,
- "src_addr": "",
- "src_url": "192.168.1.253",
- "ori_keyword": "qwe",
- "rep_keyword": "456",
- "mode": "exact",
- "hit_rate": 100,
- "id": 1,
- "enabled": "yes",
- "excluded": "",
- "tagname": "test1"
}{- "code": 0,
- "message": "success",
- "rowid": 1
}根据ID获取指定的URL关键字替换策略详情
| id required | integer >= 1 URL关键字替换策略ID |
{- "message": "Success",
- "results": {
- "id": 1,
- "prio": 1,
- "enabled": "yes",
- "tagname": "444",
- "src_addr": {
- "custom": "192.168.1.100",
- "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "src_url": "192.168.1.253",
- "ori_keyword": "qwe",
- "rep_keyword": "456",
- "mode": "exact",
- "excluded": "",
- "hit_rate": 100,
- "time": {
- "custom": [
- {
- "type": "weekly",
- "start_time": "00:00",
- "end_time": "20:00",
- "weekdays": "1234567",
- "comment": "工作时间段"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}
}
}完整更新指定的URL关键字替换策略配置。
注意: 本接口为全量修改,请求时需传入所有字段。无需修改的字段请保持原值或传空值,未传入的字段可能被重置。
| id required | integer >= 1 URL关键字替换策略ID |
URL关键字替换策略更新数据
| enabled required | string Enum: "yes" "no" 规则状态 |
| prio required | integer [ 1 .. 63 ] 优先级(1-63,1最高) |
required | object (security_security_url_keywords_AddressObject) |
| src_url required | string 源URL |
| ori_keyword required | string [ 1 .. 50 ] characters 原始关键字(1-50字符) |
| rep_keyword required | string [ 1 .. 40 ] characters 替换关键字(1-40字符) |
| mode required | string Enum: "exact" "vague" 匹配模式 |
| excluded required | string 排除条件 |
| hit_rate required | integer [ 1 .. 100 ] 替换百分比(1-100) |
required | object (security_security_url_keywords_TimeObject) |
| tagname required | string 名称,支持中文、英文、数字、下划线和连字符,1-15个字符,不能以下划线或连字符开头 |
{- "enabled": "yes",
- "prio": 1,
- "src_addr": {
- "custom": "192.168.1.100",
- "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "src_url": "192.168.1.253",
- "ori_keyword": "qwe",
- "rep_keyword": "456",
- "mode": "exact",
- "excluded": "",
- "hit_rate": 100,
- "time": {
- "custom": [
- {
- "type": "weekly",
- "start_time": "00:00",
- "end_time": "20:00",
- "weekdays": "1234567",
- "comment": "工作时间段"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}, - "tagname": "test1"
}{- "code": 0,
- "message": "success"
}切换URL关键字替换策略的启用状态
| id required | integer >= 1 URL关键字替换策略ID |
策略状态
| enabled required | string Enum: "yes" "no" 策略状态 |
{- "enabled": "yes"
}{- "code": 0,
- "message": "success"
}获取URL跳转策略列表,支持分页和过滤查询
| page | integer >= 1 Default: 1 页码(从1开始) |
| limit | integer >= 1 Default: 20 每页记录数 |
| filter | string Example: filter=enabled==yes&mode==exact 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
支持的字段:enabled、mode、src_url、dst_url、prio、hit_rate等 使用示例:
|
| order | string Default: "prio" Enum: "prio" "id" "create_time" 排序字段(prio, id, create_time等) |
| order_by | string Default: "asc" Enum: "asc" "desc" 排序方式(asc:升序, desc:降序) |
{- "message": "Success",
- "results": {
- "total": 1,
- "data": [
- {
- "id": 1,
- "prio": 32,
- "enabled": "yes",
- "tagname": "55",
- "src_addr": {
- "custom": "192.168.9.16",
- "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "src_url": "192.168.1.253",
- "dst_url": "192.168.3.169",
- "mode": "exact",
- "excluded": "",
- "hit_rate": 100,
- "time": {
- "custom": [
- {
- "type": "weekly",
- "start_time": "00:00",
- "end_time": "20:00",
- "weekdays": "1234567",
- "comment": "工作时间段"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}
}
]
}
}创建新的URL跳转策略,支持源地址过滤和目标URL跳转功能
URL跳转策略配置数据
| prio required | integer [ 1 .. 63 ] 优先级(1-63,1最高) |
| enabled required | string Enum: "yes" "no" 规则状态 |
| tagname required | string 名称,支持中文、英文、数字、下划线和连字符,1-15个字符,不能以下划线或连字符开头;同时作为规则备注(comment),两者含义相同 |
object (security_security_url_redirect_AddressObject) | |
| src_url required | string 源URL |
| dst_url required | string 目的URL |
| mode required | string Enum: "exact" "vague" 匹配模式 |
| excluded | string 排除条件 |
| hit_rate required | integer [ 1 .. 100 ] 跳转百分比(1-100) |
object (security_security_url_redirect_TimeObject) |
{- "enabled": "yes",
- "tagname": "55",
- "prio": 32,
- "src_url": "192.168.1.253",
- "dst_url": "192.168.3.169",
- "mode": "exact",
- "excluded": "",
- "hit_rate": 100,
- "src_addr": {
- "custom": [
- "192.168.9.16"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "time": {
- "custom": [
- {
- "type": "weekly",
- "weekdays": "1234567",
- "start_time": "00:00",
- "end_time": "20:00",
- "comment": "test11"
}, - {
- "type": "date",
- "start_time": "2026-05-01T08:00",
- "end_time": "2026-05-10T08:00",
- "comment": "test11"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}
}{- "code": 0,
- "message": "success",
- "rowid": 1
}根据ID获取指定的URL跳转策略详情
| id required | integer >= 1 URL跳转策略ID |
{- "message": "Success",
- "results": {
- "id": 1,
- "prio": 32,
- "enabled": "yes",
- "tagname": "55",
- "src_addr": {
- "custom": "192.168.9.16",
- "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "src_url": "192.168.1.253",
- "dst_url": "192.168.3.169",
- "mode": "exact",
- "excluded": "",
- "hit_rate": 100,
- "time": {
- "custom": [
- {
- "type": "weekly",
- "start_time": "00:00",
- "end_time": "20:00",
- "weekdays": "1234567",
- "comment": "工作时间段"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}
}
}完整更新指定的URL跳转策略配置
注意: 本接口为全量修改,请求时需传入所有字段。无需修改的字段请保持原值或传空值,未传入的字段可能被重置。
| id required | integer >= 1 URL跳转策略ID |
URL跳转策略更新数据
| enabled required | string Enum: "yes" "no" 规则状态 |
| prio required | integer [ 1 .. 63 ] 优先级(1-63,1最高) |
required | object (security_security_url_redirect_AddressObject) |
| src_url required | string 源URL |
| dst_url required | string 目的URL |
| mode required | string Enum: "exact" "vague" 匹配模式 |
| excluded required | string 排除条件 |
| hit_rate required | integer [ 1 .. 100 ] 跳转百分比(1-100) |
required | object (security_security_url_redirect_TimeObject) |
| tagname required | string 名称,支持中文、英文、数字、下划线和连字符,1-15个字符,不能以下划线或连字符开头;同时作为规则备注(comment),两者含义相同 |
{- "enabled": "yes",
- "prio": 32,
- "src_addr": {
- "custom": "192.168.9.16",
- "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "src_url": "192.168.1.253",
- "dst_url": "192.168.3.169",
- "mode": "exact",
- "excluded": "",
- "hit_rate": 100,
- "time": {
- "custom": [
- {
- "type": "weekly",
- "start_time": "00:00",
- "end_time": "20:00",
- "weekdays": "1234567",
- "comment": "工作时间段"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}, - "tagname": "test1"
}{- "code": 0,
- "message": "success"
}切换URL跳转策略的启用状态
| id required | integer >= 1 URL跳转策略ID |
策略状态
| enabled required | string Enum: "yes" "no" 策略状态 |
{- "enabled": "yes"
}{- "code": 0,
- "message": "success"
}获取URL参数替换策略列表,支持分页和过滤查询
| page | integer >= 1 Default: 1 页码(从1开始) |
| limit | integer >= 1 Default: 20 每页记录数 |
| filter | string Example: filter=enabled==yes&mode==exact 过滤条件,支持精确匹配和多条件组合。 支持的操作符:
多条件连接语法:
支持的字段:enabled、mode、param_keyword、rep_keyword、prio、hit_rate等 使用示例:
|
| order | string Default: "prio" Enum: "prio" "id" 排序字段(prio, id) |
| order_by | string Default: "asc" Enum: "asc" "desc" 排序方式(asc:升序, desc:降序) |
{- "message": "Success",
- "results": {
- "total": 1,
- "data": [
- {
- "id": 1,
- "prio": 1,
- "enabled": "yes",
- "tagname": "111",
- "src_addr": {
- "custom": "192.168.9.16",
- "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "src_url": "192.168.1.253",
- "param_keyword": "query",
- "rep_keyword": "aa",
- "mode": "exact",
- "excluded": "",
- "hit_rate": 100,
- "time": {
- "custom": [
- {
- "type": "weekly",
- "start_time": "00:00",
- "end_time": "20:00",
- "weekdays": "1234567",
- "comment": "test11"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}
}
]
}
}创建新的URL参数替换策略,支持参数匹配和替换功能
URL参数替换策略配置数据
| prio required | integer [ 1 .. 63 ] 优先级(1-63,1最高) |
| enabled required | string Enum: "yes" "no" 规则状态 |
| tagname required | string 名称,支持中文、英文、数字、下划线和连字符,1-15个字符,不能以下划线或连字符开头 |
object (security_security_url_replace_AddressObject) | |
| src_url required | string 源URL |
| param_keyword required | string 参数关键字 |
| rep_keyword required | string 替换值 |
| mode required | string Enum: "exact" "vague" 匹配模式 |
| excluded | string 排除条件 |
| hit_rate required | integer [ 1 .. 100 ] 替换百分比(1-100) |
object (security_security_url_replace_TimeObject) |
{- "enabled": "yes",
- "tagname": "test-rule",
- "comment": "111",
- "prio": 1,
- "excluded": "",
- "src_url": "192.168.1.253",
- "mode": "exact",
- "hit_rate": 100,
- "rep_keyword": "aa",
- "param_keyword": "query",
- "src_addr": {
- "custom": [
- "192.168.9.16"
], - "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "time": {
- "custom": [
- {
- "type": "weekly",
- "weekdays": "1234567",
- "start_time": "00:00",
- "end_time": "20:00",
- "comment": "test11"
}, - {
- "type": "date",
- "start_time": "2026-05-01T08:00",
- "end_time": "2026-05-10T08:00",
- "comment": "test11"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}
}{- "code": 0,
- "message": "success",
- "rowid": 1
}根据ID获取指定的URL参数替换策略详情
| id required | integer >= 1 URL参数替换策略ID |
{- "message": "Success",
- "results": {
- "id": 1,
- "prio": 1,
- "enabled": "yes",
- "tagname": "111",
- "src_addr": {
- "custom": "192.168.9.16",
- "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "src_url": "192.168.1.253",
- "param_keyword": "query",
- "rep_keyword": "aa",
- "mode": "exact",
- "excluded": "",
- "hit_rate": 100,
- "time": {
- "custom": [
- {
- "type": "weekly",
- "start_time": "00:00",
- "end_time": "20:00",
- "weekdays": "1234567",
- "comment": "test11"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}
}
}完整更新指定的URL参数替换策略配置。
注意: 本接口为全量修改,请求时需传入所有字段。无需修改的字段请保持原值或传空值,未传入的字段可能被重置。
| id required | integer >= 1 URL参数替换策略ID |
URL参数替换策略更新数据
| enabled required | string Enum: "yes" "no" 规则状态 |
| prio required | integer [ 1 .. 63 ] 优先级(1-63,1最高) |
required | object (security_security_url_replace_AddressObject) |
| src_url required | string 源URL |
| param_keyword required | string [ 1 .. 40 ] characters 参数关键字(1-40字符) |
| rep_keyword required | string [ 1 .. 40 ] characters 替换值(1-40字符) |
| mode required | string Enum: "exact" "vague" 匹配模式 |
| excluded required | string 排除条件 |
| hit_rate required | integer [ 1 .. 100 ] 替换百分比(1-100) |
required | object (security_security_url_replace_TimeObject) |
| tagname required | string 名称,支持中文、英文、数字、下划线和连字符,1-15个字符,不能以下划线或连字符开头 |
{- "enabled": "yes",
- "prio": 1,
- "src_addr": {
- "custom": "192.168.9.16",
- "object": [
- {
- "type": 0,
- "gp_name": "11",
- "gid": "GPIP1"
}
]
}, - "src_url": "192.168.1.253",
- "param_keyword": "query",
- "rep_keyword": "aa",
- "mode": "exact",
- "excluded": "",
- "hit_rate": 100,
- "time": {
- "custom": [
- {
- "type": "weekly",
- "start_time": "00:00",
- "end_time": "20:00",
- "weekdays": "1234567",
- "comment": "test11"
}
], - "object": [
- {
- "type": 4,
- "gp_name": "11",
- "gid": "TIMEGP1"
}
]
}, - "tagname": "test1"
}{- "code": 0,
- "message": "success"
}切换URL参数替换策略的启用状态
| id required | integer >= 1 URL参数替换策略ID |
策略状态
| enabled required | string Enum: "yes" "no" 策略状态 |
{- "enabled": "yes"
}{- "code": 0,
- "message": "success"
}