方法列表
创建IP列表
admin
user
RPC
createIPList (CreateIPListRequest) returns (CreateIPListResponse)
HTTP
POST /IPListService/createIPList
输入对象:CreateIPListRequest:
{ string type; // 名称 string name; string code; bytes timeoutJSON; bool isPublic; // 描述(备注) string description; bool isGlobal; // 服务ID(网站ID) int64 serverId; }
输出对象:CreateIPListResponse:
修改IP列表
admin
RPC
updateIPList (UpdateIPListRequest) returns (RPCSuccess)
HTTP
POST /IPListService/updateIPList
输入对象:UpdateIPListRequest:
{ int64 ipListId; // 名称 string name; string code; bytes timeoutJSON; // 描述(备注) string description; }
输出对象:RPCSuccess:
{ }
查找IP列表信息
admin
user
RPC
findEnabledIPList (FindEnabledIPListRequest) returns (FindEnabledIPListResponse)
HTTP
POST /IPListService/findEnabledIPList
输入对象:FindEnabledIPListRequest:
输出对象:FindEnabledIPListResponse:
计算名单数量
admin
RPC
countAllEnabledIPLists (CountAllEnabledIPListsRequest) returns (RPCCountResponse)
HTTP
POST /IPListService/countAllEnabledIPLists
输入对象:CountAllEnabledIPListsRequest:
{ string type; bool isPublic; // 关键词 string keyword; }
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
列出单页名单
admin
RPC
listEnabledIPLists (ListEnabledIPListsRequest) returns (ListEnabledIPListsResponse)
HTTP
POST /IPListService/listEnabledIPLists
输入对象:ListEnabledIPListsRequest:
{ string type; bool isPublic; // 关键词 string keyword; // 读取位置 int64 offset; // 数量,通常不能小于0 int64 size; }
输出对象:ListEnabledIPListsResponse:
删除IP名单
admin
RPC
deleteIPList (DeleteIPListRequest) returns (RPCSuccess)
HTTP
POST /IPListService/deleteIPList
输入对象:DeleteIPListRequest:
输出对象:RPCSuccess:
{ }
检查IPList是否存在
admin
RPC
existsEnabledIPList (ExistsEnabledIPListRequest) returns (ExistsEnabledIPListResponse)
HTTP
POST /IPListService/existsEnabledIPList
输入对象:ExistsEnabledIPListRequest:
输出对象:ExistsEnabledIPListResponse:
根据IP来搜索IP名单
admin
RPC
findEnabledIPListContainsIP (FindEnabledIPListContainsIPRequest) returns (FindEnabledIPListContainsIPResponse)
HTTP
POST /IPListService/findEnabledIPListContainsIP
输入对象:FindEnabledIPListContainsIPRequest:
{ string ip; }
输出对象:FindEnabledIPListContainsIPResponse:
查找IP名单对应的网站ID
admin
user
RPC
findServerIdWithIPListId (FindServerIdWithIPListIdRequest) returns (FindServerIdWithIPListIdResponse)
HTTP
POST /IPListService/findServerIdWithIPListId
输入对象:FindServerIdWithIPListIdRequest:
{ // IP名单ID int64 ipListId; }
输出对象:FindServerIdWithIPListIdResponse:
{ // 网站ID(如果是公共IP名单,则对应的网站ID为0) int64 serverId; }
根据IP名单代号获取IP名单ID
admin
user
RPC
findIPListIdWithCode (FindIPListIdWithCodeRequest) returns (FindIPListIdWithCodeResponse)
HTTP
POST /IPListService/findIPListIdWithCode
输入对象:FindIPListIdWithCodeRequest:
{ // IP名单代号 string code; }
输出对象:FindIPListIdWithCodeResponse:
{ // IP名单ID int64 ipListId; }