方法列表
创建自定义线路
admin
user
RPC
createNSRoute (CreateNSRouteRequest) returns (CreateNSRouteResponse)
HTTP
POST /NSRouteService/createNSRoute
输入对象:CreateNSRouteRequest:
{ int64 nsClusterId; int64 nsDomainId; // 用户ID int64 userId; // 名称 string name; bytes rangesJSON; // 是否公用 bool isPublic; // 分类ID int64 nsRouteCategoryId; // 优先级 int32 priority; }
输出对象:CreateNSRouteResponse:
修改自定义线路
admin
user
RPC
updateNSRoute (UpdateNSRouteRequest) returns (RPCSuccess)
HTTP
POST /NSRouteService/updateNSRoute
输入对象:UpdateNSRouteRequest:
{ int64 nsRouteId; // 名称 string name; bytes rangesJSON; // 是否公用 bool isPublic; // 分类ID int64 nsRouteCategoryId; // 优先级 int32 priority; // 是否启用 bool isOn; }
输出对象:RPCSuccess:
{ }
删除自定义线路
admin
user
RPC
deleteNSRoute (DeleteNSRouteRequest) returns (RPCSuccess)
HTTP
POST /NSRouteService/deleteNSRoute
输入对象:DeleteNSRouteRequest:
输出对象:RPCSuccess:
{ }
获取单个自定义路线信息
admin
user
RPC
findNSRoute (FindNSRouteRequest) returns (FindNSRouteResponse)
HTTP
POST /NSRouteService/findNSRoute
输入对象:FindNSRouteRequest:
输出对象:FindNSRouteResponse:
查询自定义线路数量
admin
user
RPC
countAllNSRoutes (CountAllNSRoutesRequest) returns (RPCCountResponse)
HTTP
POST /NSRouteService/countAllNSRoutes
输入对象:CountAllNSRoutesRequest:
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
读取所有自定义线路
admin
user
RPC
findAllNSRoutes (FindAllNSRoutesRequest) returns (FindAllNSRoutesResponse)
HTTP
POST /NSRouteService/findAllNSRoutes
输入对象:FindAllNSRoutesRequest:
{ // 集群ID int64 nsClusterId; // 域名ID int64 nsDomainId; // 用户ID int64 userId; // 线路分类ID int64 nsRouteCategoryId; }
输出对象:FindAllNSRoutesResponse:
设置自定义线路排序
admin
user
RPC
updateNSRouteOrders (UpdateNSRouteOrdersRequest) returns (RPCSuccess)
HTTP
POST /NSRouteService/updateNSRouteOrders
输入对象:UpdateNSRouteOrdersRequest:
输出对象:RPCSuccess:
{ }
查找默认的世界区域线路
admin
user
RPC
findAllDefaultWorldRegionRoutes (FindAllDefaultWorldRegionRoutesRequest) returns (FindAllDefaultWorldRegionRoutesResponse)
HTTP
POST /NSRouteService/findAllDefaultWorldRegionRoutes
输入对象:FindAllDefaultWorldRegionRoutesRequest:
{ }
输出对象:FindAllDefaultWorldRegionRoutesResponse:
查找默认的中国省份线路
admin
user
RPC
findAllDefaultChinaProvinceRoutes (FindAllDefaultChinaProvinceRoutesRequest) returns (FindAllDefaultChinaProvinceRoutesResponse)
HTTP
POST /NSRouteService/findAllDefaultChinaProvinceRoutes
输入对象:FindAllDefaultChinaProvinceRoutesRequest:
{ }
输出对象:FindAllDefaultChinaProvinceRoutesResponse:
查找默认的ISP线路
admin
user
RPC
findAllDefaultISPRoutes (FindAllDefaultISPRoutesRequest) returns (FindAllDefaultISPRoutesResponse)
HTTP
POST /NSRouteService/findAllDefaultISPRoutes
输入对象:FindAllDefaultISPRoutesRequest:
{ }
输出对象:FindAllDefaultISPRoutesResponse:
查找默认的搜索引擎线路
admin
user
RPC
findAllAgentNSRoutes (FindAllAgentNSRoutesRequest) returns (FindAllAgentNSRoutesResponse)
HTTP
POST /NSRouteService/findAllAgentNSRoutes
输入对象:FindAllAgentNSRoutesRequest:
{ }
输出对象:FindAllAgentNSRoutesResponse: