方法列表
计算某个ACME用户相关的任务数量
admin
RPC
countAllEnabledACMETasksWithACMEUserId (CountAllEnabledACMETasksWithACMEUserIdRequest) returns (RPCCountResponse)
HTTP
POST /ACMETaskService/countAllEnabledACMETasksWithACMEUserId
输入对象:CountAllEnabledACMETasksWithACMEUserIdRequest:
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
计算跟某个DNS服务商相关的任务数量
admin
RPC
countEnabledACMETasksWithDNSProviderId (CountEnabledACMETasksWithDNSProviderIdRequest) returns (RPCCountResponse)
HTTP
POST /ACMETaskService/countEnabledACMETasksWithDNSProviderId
输入对象:CountEnabledACMETasksWithDNSProviderIdRequest:
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
计算所有任务数量
admin
RPC
countAllEnabledACMETasks (CountAllEnabledACMETasksRequest) returns (RPCCountResponse)
HTTP
POST /ACMETaskService/countAllEnabledACMETasks
输入对象:CountAllEnabledACMETasksRequest:
{ // 管理员ID int64 adminId; // 用户ID int64 userId; bool isAvailable; bool isExpired; int32 expiringDays; // 关键词 string keyword; // 可选项,是否只列出用户上传的证书 bool userOnly; }
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
列出单页任务
admin
RPC
listEnabledACMETasks (ListEnabledACMETasksRequest) returns (ListEnabledACMETasksResponse)
HTTP
POST /ACMETaskService/listEnabledACMETasks
输入对象:ListEnabledACMETasksRequest:
{ // 管理员ID int64 adminId; // 用户ID int64 userId; // 读取位置 int64 offset; // 数量,通常不能小于0 int64 size; bool isAvailable; bool isExpired; int32 expiringDays; // 关键词 string keyword; // 可选项,是否只列出用户上传的证书 bool userOnly; }
输出对象:ListEnabledACMETasksResponse:
创建任务
admin
RPC
createACMETask (CreateACMETaskRequest) returns (CreateACMETaskResponse)
HTTP
POST /ACMETaskService/createACMETask
输入对象:CreateACMETaskRequest:
{ // 平台用户ID,只有管理员才有权限指定 int64 userId; int64 acmeUserId; int64 dnsProviderId; string dnsDomain; []string domains; bool autoRenew; string authType; string authURL; }
输出对象:CreateACMETaskResponse:
修改任务
admin
RPC
updateACMETask (UpdateACMETaskRequest) returns (RPCSuccess)
HTTP
POST /ACMETaskService/updateACMETask
输入对象:UpdateACMETaskRequest:
输出对象:RPCSuccess:
{ }
删除任务
admin
RPC
deleteACMETask (DeleteACMETaskRequest) returns (RPCSuccess)
HTTP
POST /ACMETaskService/deleteACMETask
输入对象:DeleteACMETaskRequest:
输出对象:RPCSuccess:
{ }
运行某个任务
admin
RPC
runACMETask (RunACMETaskRequest) returns (RunACMETaskResponse)
HTTP
POST /ACMETaskService/runACMETask
输入对象:RunACMETaskRequest:
输出对象:RunACMETaskResponse:
查找单个任务信息
admin
RPC
findEnabledACMETask (FindEnabledACMETaskRequest) returns (FindEnabledACMETaskResponse)
HTTP
POST /ACMETaskService/findEnabledACMETask
输入对象:FindEnabledACMETaskRequest:
输出对象:FindEnabledACMETaskResponse:
查找任务所属用户
admin
RPC
findACMETaskUser (FindACMETaskUserRequest) returns (FindACMETaskUserResponse)
HTTP
POST /ACMETaskService/findACMETaskUser
输入对象:FindACMETaskUserRequest:
{ // 任务ID int64 acmeTaskId; }
输出对象:FindACMETaskUserResponse:
{ // 用户信息,只包含几个基本的信息 User user; }