[WAF]规则支持导入导出

This commit is contained in:
GoEdgeLab
2020-12-02 16:09:10 +08:00
parent af2e78053d
commit a785dba516
2 changed files with 214 additions and 83 deletions

View File

@@ -36,6 +36,9 @@ service HTTPFirewallPolicyService {
// 获取防火墙的基本信息
rpc findEnabledFirewallPolicy (FindEnabledFirewallPolicyRequest) returns (FindEnabledFirewallPolicyResponse);
// 导入策略数据
rpc importHTTPFirewallPolicy (ImportHTTPFirewallPolicyRequest) returns (RPCSuccess);
}
// 获取所有可用策略
@@ -117,4 +120,10 @@ message FindEnabledFirewallPolicyRequest {
message FindEnabledFirewallPolicyResponse {
HTTPFirewallPolicy firewallPolicy = 1;
}
// 导入策略数据
message ImportHTTPFirewallPolicyRequest {
int64 firewallPolicyId = 1;
bytes firewallPolicyJSON = 2;
}