方法列表
获取所有可用策略
admin
RPC
findAllEnabledHTTPCachePolicies (FindAllEnabledHTTPCachePoliciesRequest) returns (FindAllEnabledHTTPCachePoliciesResponse)
HTTP
POST /HTTPCachePolicyService/findAllEnabledHTTPCachePolicies
输入对象:FindAllEnabledHTTPCachePoliciesRequest:
{ }
输出对象:FindAllEnabledHTTPCachePoliciesResponse:
创建缓存策略
admin
RPC
createHTTPCachePolicy (CreateHTTPCachePolicyRequest) returns (CreateHTTPCachePolicyResponse)
HTTP
POST /HTTPCachePolicyService/createHTTPCachePolicy
输入对象:CreateHTTPCachePolicyRequest:
{ // 是否启用 bool isOn; // 名称 string name; // 描述(备注) string description; bytes capacityJSON; bytes maxSizeJSON; string type; bytes optionsJSON; bool syncCompressionCache; // 预热超时时间 bytes fetchTimeoutJSON; }
输出对象:CreateHTTPCachePolicyResponse:
修改缓存策略
admin
RPC
updateHTTPCachePolicy (UpdateHTTPCachePolicyRequest) returns (RPCSuccess)
HTTP
POST /HTTPCachePolicyService/updateHTTPCachePolicy
输入对象:UpdateHTTPCachePolicyRequest:
输出对象:RPCSuccess:
{ }
删除缓存策略
admin
RPC
deleteHTTPCachePolicy (DeleteHTTPCachePolicyRequest) returns (RPCSuccess)
HTTP
POST /HTTPCachePolicyService/deleteHTTPCachePolicy
输入对象:DeleteHTTPCachePolicyRequest:
输出对象:RPCSuccess:
{ }
计算缓存策略数量
admin
RPC
countAllEnabledHTTPCachePolicies (CountAllEnabledHTTPCachePoliciesRequest) returns (RPCCountResponse)
HTTP
POST /HTTPCachePolicyService/countAllEnabledHTTPCachePolicies
输入对象:CountAllEnabledHTTPCachePoliciesRequest:
{ // 关键词 string keyword; // 集群ID int64 nodeClusterId; string type; }
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
列出单页的缓存策略
admin
RPC
listEnabledHTTPCachePolicies (ListEnabledHTTPCachePoliciesRequest) returns (ListEnabledHTTPCachePoliciesResponse)
HTTP
POST /HTTPCachePolicyService/listEnabledHTTPCachePolicies
输入对象:ListEnabledHTTPCachePoliciesRequest:
{ // 读取位置 int64 offset; // 数量,通常不能小于0 int64 size; // 关键词 string keyword; // 集群ID int64 nodeClusterId; string type; }
输出对象:ListEnabledHTTPCachePoliciesResponse:
查找单个缓存策略配置
admin
RPC
findEnabledHTTPCachePolicyConfig (FindEnabledHTTPCachePolicyConfigRequest) returns (FindEnabledHTTPCachePolicyConfigResponse)
HTTP
POST /HTTPCachePolicyService/findEnabledHTTPCachePolicyConfig
输入对象:FindEnabledHTTPCachePolicyConfigRequest:
输出对象:FindEnabledHTTPCachePolicyConfigResponse:
查找单个缓存策略信息
admin
RPC
findEnabledHTTPCachePolicy (FindEnabledHTTPCachePolicyRequest) returns (FindEnabledHTTPCachePolicyResponse)
HTTP
POST /HTTPCachePolicyService/findEnabledHTTPCachePolicy
输入对象:FindEnabledHTTPCachePolicyRequest:
输出对象:FindEnabledHTTPCachePolicyResponse:
设置缓存策略的默认条件
admin
RPC
updateHTTPCachePolicyRefs (UpdateHTTPCachePolicyRefsRequest) returns (RPCSuccess)
HTTP
POST /HTTPCachePolicyService/updateHTTPCachePolicyRefs
输入对象:UpdateHTTPCachePolicyRefsRequest:
输出对象:RPCSuccess:
{ }