mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-28 21:46:37 +08:00
实现DNS域名验证
This commit is contained in:
@@ -67,12 +67,16 @@ service NSClusterService {
|
||||
|
||||
// 修改NS集群的DDoS设置
|
||||
rpc updateNSClusterDDoSProtection(UpdateNSClusterDDoSProtectionRequest) returns (RPCSuccess);
|
||||
|
||||
// 查找用户可以使用的主机地址
|
||||
rpc findAvailableNSHostsForUser(FindAvailableNSHostsForUserRequest) returns (FindAvailableNSHostsForUserResponse);
|
||||
}
|
||||
|
||||
// 创建集群
|
||||
message CreateNSClusterRequest {
|
||||
string name = 1;
|
||||
bytes accessLogJSON = 2;
|
||||
repeated string hosts = 3;
|
||||
}
|
||||
|
||||
message CreateNSClusterResponse {
|
||||
@@ -84,6 +88,7 @@ message UpdateNSClusterRequest {
|
||||
int64 nsClusterId = 1;
|
||||
string name = 2;
|
||||
bool isOn = 3;
|
||||
repeated string hosts = 4;
|
||||
}
|
||||
|
||||
// 查找集群访问日志配置
|
||||
@@ -216,4 +221,13 @@ message FindNSClusterDDoSProtectionResponse {
|
||||
message UpdateNSClusterDDoSProtectionRequest {
|
||||
int64 nsClusterId = 1;
|
||||
bytes ddosProtectionJSON = 2;
|
||||
}
|
||||
|
||||
// 查找用户可以使用的主机地址
|
||||
message FindAvailableNSHostsForUserRequest {
|
||||
int64 userId = 1;
|
||||
}
|
||||
|
||||
message FindAvailableNSHostsForUserResponse {
|
||||
repeated string hosts = 1;
|
||||
}
|
||||
Reference in New Issue
Block a user