方法列表
创建IP地址
admin
RPC
createNodeIPAddress (CreateNodeIPAddressRequest) returns (CreateNodeIPAddressResponse)
HTTP
POST /NodeIPAddressService/createNodeIPAddress
输入对象:CreateNodeIPAddressRequest:
{ // 节点ID int64 nodeId; // 角色:node:边缘节点,dns:智能DNS节点 string role; // 名称 string name; // IP地址 string ip; // 是否能够访问 bool canAccess; // 是否上线 bool isUp; // 可选项,所属集群ID列表,如果没有指定,则表示应用于节点所属的所有集群 []int64 nodeClusterIds; }
输出对象:CreateNodeIPAddressResponse:
批量创建IP地址
admin
RPC
createNodeIPAddresses (CreateNodeIPAddressesRequest) returns (CreateNodeIPAddressesResponse)
HTTP
POST /NodeIPAddressService/createNodeIPAddresses
输入对象:CreateNodeIPAddressesRequest:
{ // 节点ID int64 nodeId; string role; // 名称 string name; []string ipList; bool canAccess; bool isUp; string groupValue; // 可选项,所属集群ID列表,如果没有指定,则表示应用于节点所属的所有集群 []int64 nodeClusterIds; }
输出对象:CreateNodeIPAddressesResponse:
修改IP地址
admin
RPC
updateNodeIPAddress (UpdateNodeIPAddressRequest) returns (RPCSuccess)
HTTP
POST /NodeIPAddressService/updateNodeIPAddress
输入对象:UpdateNodeIPAddressRequest:
{ // IP地址ID int64 nodeIPAddressId; // 名称 string name; string ip; // 是否能够访问 bool canAccess; // 是否启用 bool isOn; // 是否上线 bool isUp; // 可选项,所属集群ID列表,如果没有指定,则表示应用于节点所属的所有集群 []int64 clusterIds; }
输出对象:RPCSuccess:
{ }
修改IP地址所属节点
admin
RPC
updateNodeIPAddressNodeId (UpdateNodeIPAddressNodeIdRequest) returns (RPCSuccess)
HTTP
POST /NodeIPAddressService/updateNodeIPAddressNodeId
输入对象:UpdateNodeIPAddressNodeIdRequest:
{ int64 nodeIPAddressId; // 节点ID int64 nodeId; }
输出对象:RPCSuccess:
{ }
禁用单个IP地址
admin
RPC
disableNodeIPAddress (DisableNodeIPAddressRequest) returns (DisableNodeIPAddressResponse)
HTTP
POST /NodeIPAddressService/disableNodeIPAddress
输入对象:DisableNodeIPAddressRequest:
输出对象:DisableNodeIPAddressResponse:
{ }
禁用节点的所有IP地址
admin
RPC
disableAllNodeIPAddressesWithNodeId (DisableAllNodeIPAddressesWithNodeIdRequest) returns (DisableAllNodeIPAddressesWithNodeIdResponse)
HTTP
POST /NodeIPAddressService/disableAllNodeIPAddressesWithNodeId
输入对象:DisableAllNodeIPAddressesWithNodeIdRequest:
{ // 节点ID int64 nodeId; string role; }
输出对象:DisableAllNodeIPAddressesWithNodeIdResponse:
{ }
查找单个IP地址
admin
RPC
findEnabledNodeIPAddress (FindEnabledNodeIPAddressRequest) returns (FindEnabledNodeIPAddressResponse)
HTTP
POST /NodeIPAddressService/findEnabledNodeIPAddress
输入对象:FindEnabledNodeIPAddressRequest:
输出对象:FindEnabledNodeIPAddressResponse:
查找节点的所有地址
admin
RPC
findAllEnabledNodeIPAddressesWithNodeId (FindAllEnabledNodeIPAddressesWithNodeIdRequest) returns (FindAllEnabledNodeIPAddressesWithNodeIdResponse)
HTTP
POST /NodeIPAddressService/findAllEnabledNodeIPAddressesWithNodeId
输入对象:FindAllEnabledNodeIPAddressesWithNodeIdRequest:
{ // 节点ID int64 nodeId; string role; }
输出对象:FindAllEnabledNodeIPAddressesWithNodeIdResponse:
计算IP地址数量
admin
RPC
countAllEnabledNodeIPAddresses (CountAllEnabledNodeIPAddressesRequest) returns (RPCCountResponse)
HTTP
POST /NodeIPAddressService/countAllEnabledNodeIPAddresses
输入对象:CountAllEnabledNodeIPAddressesRequest:
{ // 集群ID int64 nodeClusterId; string role; int32 upState; // 关键词 string keyword; }
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
列出单页IP地址
admin
RPC
listEnabledNodeIPAddresses (ListEnabledNodeIPAddressesRequest) returns (ListEnabledNodeIPAddressesResponse)
HTTP
POST /NodeIPAddressService/listEnabledNodeIPAddresses
输入对象:ListEnabledNodeIPAddressesRequest:
{ // 集群ID int64 nodeClusterId; string role; int32 upState; // 关键词 string keyword; // 读取位置 int64 offset; // 数量,通常不能小于0 int64 size; }
输出对象:ListEnabledNodeIPAddressesResponse:
设置上下线状态
admin
RPC
updateNodeIPAddressIsUp (UpdateNodeIPAddressIsUpRequest) returns (RPCSuccess)
HTTP
POST /NodeIPAddressService/updateNodeIPAddressIsUp
输入对象:UpdateNodeIPAddressIsUpRequest:
输出对象:RPCSuccess:
{ }
还原备用IP状态
admin
RPC
restoreNodeIPAddressBackupIP (RestoreNodeIPAddressBackupIPRequest) returns (RPCSuccess)
HTTP
POST /NodeIPAddressService/restoreNodeIPAddressBackupIP
输入对象:RestoreNodeIPAddressBackupIPRequest:
输出对象:RPCSuccess:
{ }