方法列表
创建反向代理
admin
user
RPC
createReverseProxy (CreateReverseProxyRequest) returns (CreateReverseProxyResponse)
HTTP
POST /ReverseProxyService/createReverseProxy
输入对象:CreateReverseProxyRequest:
{ // 可选项,调度设置 json:scheduling bytes schedulingJSON; // 可选项,主要源站 json:origin_refs bytes primaryOriginsJSON; // 可选项,备用源站 json:origin_refs bytes backupOriginsJSON; }
输出对象:CreateReverseProxyResponse:
{ // 反向代理ID int64 reverseProxyId; }
查找反向代理
admin
user
RPC
findEnabledReverseProxy (FindEnabledReverseProxyRequest) returns (FindEnabledReverseProxyResponse)
HTTP
POST /ReverseProxyService/findEnabledReverseProxy
输入对象:FindEnabledReverseProxyRequest:
{ // 反向代理ID int64 reverseProxyId; }
输出对象:FindEnabledReverseProxyResponse:
{ // 反向代理信息 ReverseProxy reverseProxy; }
查找反向代理配置
admin
user
RPC
findEnabledReverseProxyConfig (FindEnabledReverseProxyConfigRequest) returns (FindEnabledReverseProxyConfigResponse)
HTTP
POST /ReverseProxyService/findEnabledReverseProxyConfig
输入对象:FindEnabledReverseProxyConfigRequest:
{ // 反向代理ID int64 reverseProxyId; }
输出对象:FindEnabledReverseProxyConfigResponse:
{ // 反向代理配置 bytes reverseProxyJSON; }
修改反向代理的调度算法
admin
user
RPC
updateReverseProxyScheduling (UpdateReverseProxySchedulingRequest) returns (RPCSuccess)
HTTP
POST /ReverseProxyService/updateReverseProxyScheduling
输入对象:UpdateReverseProxySchedulingRequest:
{ // 反向代理ID int64 reverseProxyId; // 调度配置 json:scheduling bytes schedulingJSON; }
输出对象:RPCSuccess:
{ }
修改主要源站信息
admin
user
RPC
updateReverseProxyPrimaryOrigins (UpdateReverseProxyPrimaryOriginsRequest) returns (RPCSuccess)
HTTP
POST /ReverseProxyService/updateReverseProxyPrimaryOrigins
输入对象:UpdateReverseProxyPrimaryOriginsRequest:
{ // 反向代理ID int64 reverseProxyId; // 源站配置 json:origin_refs bytes originsJSON; }
输出对象:RPCSuccess:
{ }
修改备用源站信息
admin
user
RPC
updateReverseProxyBackupOrigins (UpdateReverseProxyBackupOriginsRequest) returns (RPCSuccess)
HTTP
POST /ReverseProxyService/updateReverseProxyBackupOrigins
输入对象:UpdateReverseProxyBackupOriginsRequest:
{ // 反向代理ID int64 reverseProxyId; // 源站配置 json:origin_refs bytes originsJSON; }
输出对象:RPCSuccess:
{ }
修改反向代理设置
admin
user
RPC
updateReverseProxy (UpdateReverseProxyRequest) returns (RPCSuccess)
HTTP
POST /ReverseProxyService/updateReverseProxy
输入对象:UpdateReverseProxyRequest:
{ // 反向代理ID int64 reverseProxyId; // 可选参数,回源主机名类型:0 跟随CDN域名,1跟随源站,2自定义 int32 requestHostType; // 可选参数,自定义回源主机名 string requestHost; // 可选参数,回源主机名中去除端口 bool requestHostExcludingPort; // 可选参数,请求URI string requestURI; // 可选参数,去除URI前缀 string stripPrefix; // 可选参数,自动刷新 bool autoFlush; // 可选参数,可以添加的请求报头 []string addHeaders; // 可选参数,PROXY Protocol设置 bytes proxyProtocolJSON; // 可选参数,跳转跟随 bool followRedirects; // 可选参数,是否启用50X重试 bool retry50X; // 可选参数,是否启用40X重试 bool retry40X; }
输出对象:RPCSuccess:
{ }