实现DNS域名验证

This commit is contained in:
刘祥超
2022-09-10 16:13:26 +08:00
parent 6ed4e2315f
commit 98ad80e1cb
10 changed files with 4768 additions and 3833 deletions

View File

@@ -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;
}