方法列表
创建分组
admin
user
RPC
createServerGroup (CreateServerGroupRequest) returns (CreateServerGroupResponse)
HTTP
POST /ServerGroupService/createServerGroup
输入对象:CreateServerGroupRequest:
{ // 名称 string name; }
输出对象:CreateServerGroupResponse:
{ // 服务分组ID(网站分组ID) int64 serverGroupId; }
修改分组
admin
user
RPC
updateServerGroup (UpdateServerGroupRequest) returns (RPCSuccess)
HTTP
POST /ServerGroupService/updateServerGroup
输入对象:UpdateServerGroupRequest:
{ // 服务分组ID(网站分组ID) int64 serverGroupId; // 名称 string name; }
输出对象:RPCSuccess:
{ }
删除分组
admin
user
RPC
deleteServerGroup (DeleteServerGroupRequest) returns (RPCSuccess)
HTTP
POST /ServerGroupService/deleteServerGroup
输入对象:DeleteServerGroupRequest:
{ // 服务分组ID(网站分组ID) int64 serverGroupId; }
输出对象:RPCSuccess:
{ }
查询所有分组
admin
user
RPC
findAllEnabledServerGroups (FindAllEnabledServerGroupsRequest) returns (FindAllEnabledServerGroupsResponse)
HTTP
POST /ServerGroupService/findAllEnabledServerGroups
输入对象:FindAllEnabledServerGroupsRequest:
{ // 可选项,用户ID,只有管理员才可以指定用户ID int64 userId; }
输出对象:FindAllEnabledServerGroupsResponse:
{ // 分组列表 []ServerGroup serverGroups; }
修改分组排序
admin
user
RPC
updateServerGroupOrders (UpdateServerGroupOrdersRequest) returns (RPCSuccess)
HTTP
POST /ServerGroupService/updateServerGroupOrders
输入对象:UpdateServerGroupOrdersRequest:
输出对象:RPCSuccess:
{ }
查找单个分组信息
admin
user
RPC
findEnabledServerGroup (FindEnabledServerGroupRequest) returns (FindEnabledServerGroupResponse)
HTTP
POST /ServerGroupService/findEnabledServerGroup
输入对象:FindEnabledServerGroupRequest:
{ // 服务分组ID(网站分组ID) int64 serverGroupId; }
输出对象:FindEnabledServerGroupResponse:
查找HTTP反向代理设置
admin
RPC
findAndInitServerGroupHTTPReverseProxyConfig (FindAndInitServerGroupHTTPReverseProxyConfigRequest) returns (FindAndInitServerGroupHTTPReverseProxyConfigResponse)
HTTP
POST /ServerGroupService/findAndInitServerGroupHTTPReverseProxyConfig
输入对象:FindAndInitServerGroupHTTPReverseProxyConfigRequest:
{ // 服务分组ID(网站分组ID) int64 serverGroupId; }
输出对象:FindAndInitServerGroupHTTPReverseProxyConfigResponse:
查找TCP反向代理设置
admin
RPC
findAndInitServerGroupTCPReverseProxyConfig (FindAndInitServerGroupTCPReverseProxyConfigRequest) returns (FindAndInitServerGroupTCPReverseProxyConfigResponse)
HTTP
POST /ServerGroupService/findAndInitServerGroupTCPReverseProxyConfig
输入对象:FindAndInitServerGroupTCPReverseProxyConfigRequest:
{ // 服务分组ID(网站分组ID) int64 serverGroupId; }
输出对象:FindAndInitServerGroupTCPReverseProxyConfigResponse:
查找UDP反向代理设置
admin
RPC
findAndInitServerGroupUDPReverseProxyConfig (FindAndInitServerGroupUDPReverseProxyConfigRequest) returns (FindAndInitServerGroupUDPReverseProxyConfigResponse)
HTTP
POST /ServerGroupService/findAndInitServerGroupUDPReverseProxyConfig
输入对象:FindAndInitServerGroupUDPReverseProxyConfigRequest:
{ // 服务分组ID(网站分组ID) int64 serverGroupId; }
输出对象:FindAndInitServerGroupUDPReverseProxyConfigResponse:
修改分组的HTTP反向代理设置
admin
RPC
updateServerGroupHTTPReverseProxy (UpdateServerGroupHTTPReverseProxyRequest) returns (RPCSuccess)
HTTP
POST /ServerGroupService/updateServerGroupHTTPReverseProxy
输入对象:UpdateServerGroupHTTPReverseProxyRequest:
{ // 服务分组ID(网站分组ID) int64 serverGroupId; bytes reverseProxyJSON; }
输出对象:RPCSuccess:
{ }
修改分组的TCP反向代理设置
admin
RPC
updateServerGroupTCPReverseProxy (UpdateServerGroupTCPReverseProxyRequest) returns (RPCSuccess)
HTTP
POST /ServerGroupService/updateServerGroupTCPReverseProxy
输入对象:UpdateServerGroupTCPReverseProxyRequest:
{ // 服务分组ID(网站分组ID) int64 serverGroupId; bytes reverseProxyJSON; }
输出对象:RPCSuccess:
{ }
修改分组的UDP反向代理设置
admin
RPC
updateServerGroupUDPReverseProxy (UpdateServerGroupUDPReverseProxyRequest) returns (RPCSuccess)
HTTP
POST /ServerGroupService/updateServerGroupUDPReverseProxy
输入对象:UpdateServerGroupUDPReverseProxyRequest:
{ // 服务分组ID(网站分组ID) int64 serverGroupId; bytes reverseProxyJSON; }
输出对象:RPCSuccess:
{ }
取得分组的配置概要信息
admin
user
RPC
findEnabledServerGroupConfigInfo (FindEnabledServerGroupConfigInfoRequest) returns (FindEnabledServerGroupConfigInfoResponse)
HTTP
POST /ServerGroupService/findEnabledServerGroupConfigInfo
输入对象:FindEnabledServerGroupConfigInfoRequest:
{ // 服务分组ID(网站分组ID) int64 serverGroupId; // 服务ID(网站ID) int64 serverId; }
输出对象:FindEnabledServerGroupConfigInfoResponse:
初始化Web设置
admin
RPC
findAndInitServerGroupWebConfig (FindAndInitServerGroupWebConfigRequest) returns (FindAndInitServerGroupWebConfigResponse)
HTTP
POST /ServerGroupService/findAndInitServerGroupWebConfig
输入对象:FindAndInitServerGroupWebConfigRequest:
{ // 服务分组ID(网站分组ID) int64 serverGroupId; }
输出对象:FindAndInitServerGroupWebConfigResponse: