增加查找NS集群主机地址的API

This commit is contained in:
GoEdgeLab
2022-09-21 15:06:01 +08:00
parent 18dff3125b
commit 7701780bfd
3 changed files with 3930 additions and 3726 deletions
+12
View File
@@ -68,6 +68,9 @@ service NSClusterService {
// 修改NS集群的DDoS设置
rpc updateNSClusterDDoSProtection(UpdateNSClusterDDoSProtectionRequest) returns (RPCSuccess);
// 查找NS集群的主机地址
rpc findNSClusterHosts(FindNSClusterHostsRequest) returns (FindNSClusterHostsResponse);
// 查找用户可以使用的主机地址
rpc findAvailableNSHostsForUser(FindAvailableNSHostsForUserRequest) returns (FindAvailableNSHostsForUserResponse);
}
@@ -225,6 +228,15 @@ message UpdateNSClusterDDoSProtectionRequest {
bytes ddosProtectionJSON = 2;
}
// 查找NS集群的主机地址
message FindNSClusterHostsRequest {
int64 nsClusterId = 1;
}
message FindNSClusterHostsResponse {
repeated string hosts = 1;
}
// 查找用户可以使用的主机地址
message FindAvailableNSHostsForUserRequest {
int64 userId = 1;