方法列表
创建数据库节点
admin
RPC
createDBNode (CreateDBNodeRequest) returns (CreateDBNodeResponse)
HTTP
POST /DBNodeService/createDBNode
输入对象:CreateDBNodeRequest:
{ // 是否启用 bool isOn; // 名称 string name; // 描述(备注) string description; string host; int32 port; string database; string username; string password; string charset; }
输出对象:CreateDBNodeResponse:
修改数据库节点
admin
RPC
updateDBNode (UpdateDBNodeRequest) returns (RPCSuccess)
HTTP
POST /DBNodeService/updateDBNode
输入对象:UpdateDBNodeRequest:
输出对象:RPCSuccess:
{ }
删除节点
admin
RPC
deleteDBNode (DeleteDBNodeRequest) returns (RPCSuccess)
HTTP
POST /DBNodeService/deleteDBNode
输入对象:DeleteDBNodeRequest:
输出对象:RPCSuccess:
{ }
计算可用的数据库节点数量
admin
RPC
countAllEnabledDBNodes (CountAllEnabledDBNodesRequest) returns (RPCCountResponse)
HTTP
POST /DBNodeService/countAllEnabledDBNodes
输入对象:CountAllEnabledDBNodesRequest:
{ }
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
列出单页的数据库节点
admin
RPC
listEnabledDBNodes (ListEnabledDBNodesRequest) returns (ListEnabledDBNodesResponse)
HTTP
POST /DBNodeService/listEnabledDBNodes
输入对象:ListEnabledDBNodesRequest:
{ // 读取位置 int64 offset; // 数量,通常不能小于0 int64 size; }
输出对象:ListEnabledDBNodesResponse:
根据ID查找可用的数据库节点
admin
RPC
findEnabledDBNode (FindEnabledDBNodeRequest) returns (FindEnabledDBNodeResponse)
HTTP
POST /DBNodeService/findEnabledDBNode
输入对象:FindEnabledDBNodeRequest:
输出对象:FindEnabledDBNodeResponse:
获取所有表信息
admin
RPC
findAllDBNodeTables (FindAllDBNodeTablesRequest) returns (FindAllDBNodeTablesResponse)
HTTP
POST /DBNodeService/findAllDBNodeTables
输入对象:FindAllDBNodeTablesRequest:
输出对象:FindAllDBNodeTablesResponse:
删除表
admin
RPC
deleteDBNodeTable (DeleteDBNodeTableRequest) returns (RPCSuccess)
HTTP
POST /DBNodeService/deleteDBNodeTable
输入对象:DeleteDBNodeTableRequest:
输出对象:RPCSuccess:
{ }
清空表
admin
RPC
truncateDBNodeTable (TruncateDBNodeTableRequest) returns (RPCSuccess)
HTTP
POST /DBNodeService/truncateDBNodeTable
输入对象:TruncateDBNodeTableRequest:
输出对象:RPCSuccess:
{ }
检查数据库节点状态
admin
RPC
checkDBNodeStatus (CheckDBNodeStatusRequest) returns (CheckDBNodeStatusResponse)
HTTP
POST /DBNodeService/checkDBNodeStatus
输入对象:CheckDBNodeStatusRequest:
输出对象:CheckDBNodeStatusResponse: