方法列表
根据集群查找所有NS节点
admin
RPC
findAllNSNodesWithNSClusterId (FindAllNSNodesWithNSClusterIdRequest) returns (FindAllNSNodesWithNSClusterIdResponse)
HTTP
POST /NSNodeService/findAllNSNodesWithNSClusterId
输入对象:FindAllNSNodesWithNSClusterIdRequest:
输出对象:FindAllNSNodesWithNSClusterIdResponse:
所有可用的NS节点数量
admin
RPC
countAllNSNodes (CountAllNSNodesRequest) returns (RPCCountResponse)
HTTP
POST /NSNodeService/countAllNSNodes
输入对象:CountAllNSNodesRequest:
{ }
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
计算匹配的NS节点数量
admin
RPC
countAllNSNodesMatch (CountAllNSNodesMatchRequest) returns (RPCCountResponse)
HTTP
POST /NSNodeService/countAllNSNodesMatch
输入对象:CountAllNSNodesMatchRequest:
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
列出单页NS节点
admin
RPC
listNSNodesMatch (ListNSNodesMatchRequest) returns (ListNSNodesMatchResponse)
HTTP
POST /NSNodeService/listNSNodesMatch
输入对象:ListNSNodesMatchRequest:
{ // 读取位置 int64 offset; // 数量,通常不能小于0 int64 size; int64 nsClusterId; int32 installState; int32 activeState; //int64 nodeGroupId = 7; string keyword; // int64 nodeRegionId; }
输出对象:ListNSNodesMatchResponse:
计算需要升级的NS节点数量
admin
RPC
countAllUpgradeNSNodesWithNSClusterId (CountAllUpgradeNSNodesWithNSClusterIdRequest) returns (RPCCountResponse)
HTTP
POST /NSNodeService/countAllUpgradeNSNodesWithNSClusterId
输入对象:CountAllUpgradeNSNodesWithNSClusterIdRequest:
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
创建NS节点
admin
RPC
createNSNode (CreateNSNodeRequest) returns (CreateNSNodeResponse)
HTTP
POST /NSNodeService/createNSNode
输入对象:CreateNSNodeRequest:
{ // 名称 string name; // 集群ID int64 nodeClusterId; NodeLogin nodeLogin; }
输出对象:CreateNSNodeResponse:
删除NS节点
admin
RPC
deleteNSNode (DeleteNSNodeRequest) returns (RPCSuccess)
HTTP
POST /NSNodeService/deleteNSNode
输入对象:DeleteNSNodeRequest:
输出对象:RPCSuccess:
{ }
获取单个NS节点信息
admin
RPC
findNSNode (FindNSNodeRequest) returns (FindNSNodeResponse)
HTTP
POST /NSNodeService/findNSNode
输入对象:FindNSNodeRequest:
输出对象:FindNSNodeResponse:
修改NS节点
admin
RPC
updateNSNode (UpdateNSNodeRequest) returns (RPCSuccess)
HTTP
POST /NSNodeService/updateNSNode
输入对象:UpdateNSNodeRequest:
{ int64 nsNodeId; // 名称 string name; int64 nsClusterId; NodeLogin nodeLogin; // 是否启用 bool isOn; }
输出对象:RPCSuccess:
{ }
安装NS节点
admin
RPC
installNSNode (InstallNSNodeRequest) returns (InstallNSNodeResponse)
HTTP
POST /NSNodeService/installNSNode
输入对象:InstallNSNodeRequest:
输出对象:InstallNSNodeResponse:
{ }
读取NS节点安装状态
admin
RPC
findNSNodeInstallStatus (FindNSNodeInstallStatusRequest) returns (FindNSNodeInstallStatusResponse)
HTTP
POST /NSNodeService/findNSNodeInstallStatus
输入对象:FindNSNodeInstallStatusRequest:
输出对象:FindNSNodeInstallStatusResponse:
修改NS节点安装状态
admin
RPC
updateNSNodeIsInstalled (UpdateNSNodeIsInstalledRequest) returns (RPCSuccess)
HTTP
POST /NSNodeService/updateNSNodeIsInstalled
输入对象:UpdateNSNodeIsInstalledRequest:
输出对象:RPCSuccess:
{ }
检查NS节点新版本
dns
admin
RPC
checkNSNodeLatestVersion (CheckNSNodeLatestVersionRequest) returns (CheckNSNodeLatestVersionResponse)
HTTP
POST /NSNodeService/checkNSNodeLatestVersion
输入对象:CheckNSNodeLatestVersionRequest:
输出对象:CheckNSNodeLatestVersionResponse:
获取NS节点最新版本
admin
RPC
findLatestNSNodeVersion (FindLatestNSNodeVersionRequest) returns (FindLatestNSNodeVersionResponse)
HTTP
POST /NSNodeService/findLatestNSNodeVersion
输入对象:FindLatestNSNodeVersionRequest:
{ }
输出对象:FindLatestNSNodeVersionResponse:
向NS节点发送命令
admin
RPC
sendCommandToNSNode (NSNodeStreamMessage) returns (NSNodeStreamMessage)
HTTP
POST /NSNodeService/sendCommandToNSNode
输入对象:NSNodeStreamMessage:
输出对象:NSNodeStreamMessage:
修改NS节点登录信息
admin
RPC
updateNSNodeLogin (UpdateNSNodeLoginRequest) returns (RPCSuccess)
HTTP
POST /NSNodeService/updateNSNodeLogin
输入对象:UpdateNSNodeLoginRequest:
输出对象:RPCSuccess:
{ }
启动NS节点
admin
RPC
startNSNode (StartNSNodeRequest) returns (StartNSNodeResponse)
HTTP
POST /NSNodeService/startNSNode
输入对象:StartNSNodeRequest:
输出对象:StartNSNodeResponse:
停止NS节点
admin
RPC
stopNSNode (StopNSNodeRequest) returns (StopNSNodeResponse)
HTTP
POST /NSNodeService/stopNSNode
输入对象:StopNSNodeRequest:
输出对象:StopNSNodeResponse:
获取NS节点的DDoS设置
admin
dns
RPC
findNSNodeDDoSProtection (FindNSNodeDDoSProtectionRequest) returns (FindNSNodeDDoSProtectionResponse)
HTTP
POST /NSNodeService/findNSNodeDDoSProtection
输入对象:FindNSNodeDDoSProtectionRequest:
输出对象:FindNSNodeDDoSProtectionResponse:
修改NS节点的DDoS设置
admin
RPC
updateNSNodeDDoSProtection (UpdateNSNodeDDoSProtectionRequest) returns (RPCSuccess)
HTTP
POST /NSNodeService/updateNSNodeDDoSProtection
输入对象:UpdateNSNodeDDoSProtectionRequest:
输出对象:RPCSuccess:
{ }
查找单个节点的API相关配置
admin
RPC
findNSNodeAPIConfig (FindNSNodeAPIConfigRequest) returns (FindNSNodeAPIConfigResponse)
HTTP
POST /NSNodeService/findNSNodeAPIConfig
输入对象:FindNSNodeAPIConfigRequest:
输出对象:FindNSNodeAPIConfigResponse:
修改某个节点的API相关配置
admin
RPC
updateNSNodeAPIConfig (UpdateNSNodeAPIConfigRequest) returns (RPCSuccess)
HTTP
POST /NSNodeService/updateNSNodeAPIConfig
输入对象:UpdateNSNodeAPIConfigRequest:
输出对象:RPCSuccess:
{ }