mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-10 01:20:26 +08:00
IP名单中IP创建时保存相关节点、服务、WAF策略信息
This commit is contained in:
@@ -11,4 +11,5 @@ message HTTPFirewallPolicy {
|
||||
string description = 4;
|
||||
bytes inboundJSON = 5;
|
||||
bytes outboundJSON = 6;
|
||||
int64 serverId = 8;
|
||||
}
|
||||
@@ -3,6 +3,11 @@ option go_package = "./pb";
|
||||
|
||||
package pb;
|
||||
|
||||
import "models/model_http_firewall_policy.proto";
|
||||
import "models/model_http_firewall_rule_group.proto";
|
||||
import "models/model_http_firewall_rule_set.proto";
|
||||
import "models/model_server.proto";
|
||||
|
||||
message IPItem {
|
||||
int64 id = 1;
|
||||
string ipFrom = 2;
|
||||
@@ -16,4 +21,19 @@ message IPItem {
|
||||
string eventLevel = 10; // 级别
|
||||
string listType = 11; // 所在名单类型,加此字段是为了快速定位IP的性质
|
||||
int64 createdAt = 12;
|
||||
|
||||
int64 nodeId = 13;
|
||||
int64 serverId = 14;
|
||||
|
||||
int64 sourceNodeId = 15;
|
||||
int64 sourceServerId = 16;
|
||||
int64 sourceHTTPFirewallPolicyId = 17;
|
||||
int64 sourceHTTPFirewallRuleGroupId = 18;
|
||||
int64 sourceHTTPFirewallRuleSetId = 19;
|
||||
|
||||
|
||||
Server sourceServer = 30;
|
||||
HTTPFirewallPolicy sourceHTTPFirewallPolicy = 31;
|
||||
HTTPFirewallRuleGroup sourceHTTPFirewallRuleGroup = 32;
|
||||
HTTPFirewallRuleSet sourceHTTPFirewallRuleSet = 33;
|
||||
}
|
||||
Reference in New Issue
Block a user