方法列表
创建用户节点
admin
RPC
createUserNode (CreateUserNodeRequest) returns (CreateUserNodeResponse)
HTTP
POST /UserNodeService/createUserNode
输入对象:CreateUserNodeRequest:
{ // 名称 string name; // 描述(备注) string description; bytes httpJSON; bytes httpsJSON; bytes accessAddrsJSON; // 是否启用 bool isOn; }
输出对象:CreateUserNodeResponse:
修改用户节点
admin
RPC
updateUserNode (UpdateUserNodeRequest) returns (RPCSuccess)
HTTP
POST /UserNodeService/updateUserNode
输入对象:UpdateUserNodeRequest:
{ int64 userNodeId; // 名称 string name; // 描述(备注) string description; bytes httpJSON; bytes httpsJSON; bytes accessAddrsJSON; // 是否启用 bool isOn; }
输出对象:RPCSuccess:
{ }
删除用户节点
admin
RPC
deleteUserNode (DeleteUserNodeRequest) returns (RPCSuccess)
HTTP
POST /UserNodeService/deleteUserNode
输入对象:DeleteUserNodeRequest:
输出对象:RPCSuccess:
{ }
列出所有可用用户节点
admin
RPC
findAllEnabledUserNodes (FindAllEnabledUserNodesRequest) returns (FindAllEnabledUserNodesResponse)
HTTP
POST /UserNodeService/findAllEnabledUserNodes
输入对象:FindAllEnabledUserNodesRequest:
{ }
输出对象:FindAllEnabledUserNodesResponse:
计算用户节点数量
admin
RPC
countAllEnabledUserNodes (CountAllEnabledUserNodesRequest) returns (RPCCountResponse)
HTTP
POST /UserNodeService/countAllEnabledUserNodes
输入对象:CountAllEnabledUserNodesRequest:
{ }
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
列出单页的用户节点
admin
RPC
listEnabledUserNodes (ListEnabledUserNodesRequest) returns (ListEnabledUserNodesResponse)
HTTP
POST /UserNodeService/listEnabledUserNodes
输入对象:ListEnabledUserNodesRequest:
{ // 读取位置 int64 offset; // 数量,通常不能小于0 int64 size; }
输出对象:ListEnabledUserNodesResponse:
根据ID查找节点
admin
RPC
findEnabledUserNode (FindEnabledUserNodeRequest) returns (FindEnabledUserNodeResponse)
HTTP
POST /UserNodeService/findEnabledUserNode
输入对象:FindEnabledUserNodeRequest:
输出对象:FindEnabledUserNodeResponse:
更新节点状态
user
RPC
updateUserNodeStatus (UpdateUserNodeStatusRequest) returns (RPCSuccess)
HTTP
POST /UserNodeService/updateUserNodeStatus
输入对象:UpdateUserNodeStatusRequest:
输出对象:RPCSuccess:
{ }
计算使用某个SSL证书的用户节点数量
admin
RPC
countAllEnabledUserNodesWithSSLCertId (CountAllEnabledUserNodesWithSSLCertIdRequest) returns (RPCCountResponse)
HTTP
POST /UserNodeService/countAllEnabledUserNodesWithSSLCertId
输入对象:CountAllEnabledUserNodesWithSSLCertIdRequest:
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
获取用户节点访问地址
admin
RPC
findUserNodeAccessAddr (FindUserNodeAccessAddrRequest) returns (FindUserNodeAccessAddrResponse)
HTTP
POST /UserNodeService/findUserNodeAccessAddr
输入对象:FindUserNodeAccessAddrRequest:
{ }
输出对象:FindUserNodeAccessAddrResponse: