mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-14 21:40:28 +08:00
实现集群CC防护策略设置
This commit is contained in:
@@ -129,6 +129,12 @@ service NodeClusterService {
|
||||
// 设置集群的UAM策略
|
||||
rpc updateNodeClusterUAMPolicy(UpdateNodeClusterUAMPolicyRequest) returns (RPCSuccess);
|
||||
|
||||
// 读取集群的HTTP CC策略
|
||||
rpc findEnabledNodeClusterHTTPCCPolicy(FindEnabledNodeClusterHTTPCCPolicyRequest) returns (FindEnabledNodeClusterHTTPCCPolicyResponse);
|
||||
|
||||
// 设置集群的HTTP CC策略
|
||||
rpc updateNodeClusterHTTPCCPolicy(UpdateNodeClusterHTTPCCPolicyRequest) returns (RPCSuccess);
|
||||
|
||||
// 获取集群的DDoS设置
|
||||
rpc findNodeClusterDDoSProtection(FindNodeClusterDDoSProtectionRequest) returns (FindNodeClusterDDoSProtectionResponse);
|
||||
|
||||
@@ -464,6 +470,7 @@ message FindEnabledNodeClusterConfigInfoResponse {
|
||||
bool hasMetricItems = 6;
|
||||
bool webpIsOn = 7; // 是否定义了WebP策略
|
||||
bool uamIsOn = 10; // 是否定义了UAM策略
|
||||
bool httpCCIsOn = 12; // 是否定义了CC策略
|
||||
bool hasSystemServices = 8;
|
||||
bool hasDDoSProtection = 9;
|
||||
bool hasHTTPPagesPolicy = 11; // 是否设置了自定义页面策略
|
||||
@@ -505,6 +512,21 @@ message UpdateNodeClusterUAMPolicyRequest {
|
||||
bytes uamPolicyJSON = 2;
|
||||
}
|
||||
|
||||
// 读取集群的HTTP CC策略
|
||||
message FindEnabledNodeClusterHTTPCCPolicyRequest {
|
||||
int64 nodeClusterId = 1;
|
||||
}
|
||||
|
||||
message FindEnabledNodeClusterHTTPCCPolicyResponse {
|
||||
bytes httpCCPolicyJSON = 1;
|
||||
}
|
||||
|
||||
// 设置集群的HTTP CC策略
|
||||
message UpdateNodeClusterHTTPCCPolicyRequest {
|
||||
int64 nodeClusterId = 1;
|
||||
bytes httpCCPolicyJSON = 2;
|
||||
}
|
||||
|
||||
// 获取集群的DDoS设置
|
||||
message FindNodeClusterDDoSProtectionRequest {
|
||||
int64 nodeClusterId = 1;
|
||||
|
||||
Reference in New Issue
Block a user