mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-03-07 04:05:37 +08:00
集群设置中增加服务设置
This commit is contained in:
@@ -147,6 +147,9 @@ service NodeService {
|
||||
// 修改节点的DDoS设置
|
||||
rpc updateNodeDDoSProtection(UpdateNodeDDoSProtectionRequest) returns (RPCSuccess);
|
||||
|
||||
// 取得节点的服务全局配置
|
||||
rpc findNodeGlobalServerConfig(FindNodeGlobalServerConfigRequest) returns (FindNodeGlobalServerConfigResponse);
|
||||
|
||||
// 取得节点的配置概要信息
|
||||
rpc findEnabledNodeConfigInfo (FindEnabledNodeConfigInfoRequest) returns (FindEnabledNodeConfigInfoResponse);
|
||||
}
|
||||
@@ -562,6 +565,15 @@ message UpdateNodeDDoSProtectionRequest {
|
||||
bytes ddosProtectionJSON = 2;
|
||||
}
|
||||
|
||||
// 取得节点的服务全局配置
|
||||
message FindNodeGlobalServerConfigRequest {
|
||||
int64 nodeId = 1;
|
||||
}
|
||||
|
||||
message FindNodeGlobalServerConfigResponse {
|
||||
bytes globalServerConfigJSON = 1;
|
||||
}
|
||||
|
||||
// 取得节点的配置概要信息
|
||||
message FindEnabledNodeConfigInfoRequest {
|
||||
int64 nodeId = 1;
|
||||
|
||||
@@ -134,6 +134,12 @@ service NodeClusterService {
|
||||
|
||||
// 修改集群的DDoS设置
|
||||
rpc updateNodeClusterDDoSProtection(UpdateNodeClusterDDoSProtectionRequest) returns (RPCSuccess);
|
||||
|
||||
// 获取集群的全局服务设置
|
||||
rpc findNodeClusterGlobalServerConfig(FindNodeClusterGlobalServerConfigRequest) returns (FindNodeClusterGlobalServerConfigResponse);
|
||||
|
||||
// 修改集群的全局服务设置
|
||||
rpc updateNodeClusterGlobalServerConfig(UpdateNodeClusterGlobalServerConfigRequest) returns (RPCSuccess);
|
||||
}
|
||||
|
||||
// 获取所有集群的信息
|
||||
@@ -500,4 +506,19 @@ message FindNodeClusterDDoSProtectionResponse {
|
||||
message UpdateNodeClusterDDoSProtectionRequest {
|
||||
int64 nodeClusterId = 1;
|
||||
bytes ddosProtectionJSON = 2;
|
||||
}
|
||||
|
||||
// 获取集群的全局服务设置
|
||||
message FindNodeClusterGlobalServerConfigRequest {
|
||||
int64 nodeClusterId = 1;
|
||||
}
|
||||
|
||||
message FindNodeClusterGlobalServerConfigResponse {
|
||||
bytes globalServerConfigJSON = 1;
|
||||
}
|
||||
|
||||
// 修改集群的全局服务设置
|
||||
message UpdateNodeClusterGlobalServerConfigRequest {
|
||||
int64 nodeClusterId = 1;
|
||||
bytes globalServerConfigJSON = 2;
|
||||
}
|
||||
Reference in New Issue
Block a user