mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-12-09 08:50:26 +08:00
增加查找NS集群主机地址的API
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user