方法列表
创建域名
admin
RPC
createDNSDomain (CreateDNSDomainRequest) returns (CreateDNSDomainResponse)
HTTP
POST /DNSDomainService/createDNSDomain
输入对象:CreateDNSDomainRequest:
{ int64 dnsProviderId; // 名称 string name; }
输出对象:CreateDNSDomainResponse:
修改域名
admin
RPC
updateDNSDomain (UpdateDNSDomainRequest) returns (RPCSuccess)
HTTP
POST /DNSDomainService/updateDNSDomain
输入对象:UpdateDNSDomainRequest:
{ int64 dnsDomainId; // 名称 string name; // 是否启用 bool isOn; }
输出对象:RPCSuccess:
{ }
删除域名
admin
RPC
deleteDNSDomain (DeleteDNSDomainRequest) returns (RPCSuccess)
HTTP
POST /DNSDomainService/deleteDNSDomain
输入对象:DeleteDNSDomainRequest:
输出对象:RPCSuccess:
{ }
恢复删除的域名
admin
RPC
recoverDNSDomain (RecoverDNSDomainRequest) returns (RPCSuccess)
HTTP
POST /DNSDomainService/recoverDNSDomain
输入对象:RecoverDNSDomainRequest:
输出对象:RPCSuccess:
{ }
查询单个域名完整信息
admin
RPC
findDNSDomain (FindDNSDomainRequest) returns (FindDNSDomainResponse)
HTTP
POST /DNSDomainService/findDNSDomain
输入对象:FindDNSDomainRequest:
输出对象:FindDNSDomainResponse:
查询单个域名基础信息
admin
RPC
findBasicDNSDomain (FindBasicDNSDomainRequest) returns (FindBasicDNSDomainResponse)
HTTP
POST /DNSDomainService/findBasicDNSDomain
输入对象:FindBasicDNSDomainRequest:
输出对象:FindBasicDNSDomainResponse:
计算服务商下的域名数量
admin
RPC
countAllDNSDomainsWithDNSProviderId (CountAllDNSDomainsWithDNSProviderIdRequest) returns (RPCCountResponse)
HTTP
POST /DNSDomainService/countAllDNSDomainsWithDNSProviderId
输入对象:CountAllDNSDomainsWithDNSProviderIdRequest:
{ int64 dnsProviderId; // 是否已删除 bool isDeleted; bool isDown; }
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
列出服务商下的所有域名
admin
RPC
findAllDNSDomainsWithDNSProviderId (FindAllDNSDomainsWithDNSProviderIdRequest) returns (FindAllDNSDomainsWithDNSProviderIdResponse)
HTTP
POST /DNSDomainService/findAllDNSDomainsWithDNSProviderId
输入对象:FindAllDNSDomainsWithDNSProviderIdRequest:
输出对象:FindAllDNSDomainsWithDNSProviderIdResponse:
列出服务商下的所有域名基本信息
admin
RPC
findAllBasicDNSDomainsWithDNSProviderId (FindAllBasicDNSDomainsWithDNSProviderIdRequest) returns (FindAllBasicDNSDomainsWithDNSProviderIdResponse)
HTTP
POST /DNSDomainService/findAllBasicDNSDomainsWithDNSProviderId
输入对象:FindAllBasicDNSDomainsWithDNSProviderIdRequest:
输出对象:FindAllBasicDNSDomainsWithDNSProviderIdResponse:
列出服务商下的单页域名信息
admin
RPC
listBasicDNSDomainsWithDNSProviderId (ListBasicDNSDomainsWithDNSProviderIdRequest) returns (ListDNSDomainsWithDNSProviderIdResponse)
HTTP
POST /DNSDomainService/listBasicDNSDomainsWithDNSProviderId
输入对象:ListBasicDNSDomainsWithDNSProviderIdRequest:
{ int64 dnsProviderId; // 是否已删除 bool isDeleted; bool isDown; // 读取位置 int64 offset; // 数量,通常不能小于0 int64 size; }
输出对象:ListDNSDomainsWithDNSProviderIdResponse:
同步域名解析
admin
RPC
syncDNSDomainData (SyncDNSDomainDataRequest) returns (SyncDNSDomainDataResponse)
HTTP
POST /DNSDomainService/syncDNSDomainData
输入对象:SyncDNSDomainDataRequest:
{ int64 dnsDomainId; // 如果指定,表示只更新单个集群ID int64 nodeClusterId; // 是否检查节点问题 bool checkNodeIssues; }
输出对象:SyncDNSDomainDataResponse:
查看支持的线路
admin
RPC
findAllDNSDomainRoutes (FindAllDNSDomainRoutesRequest) returns (FindAllDNSDomainRoutesResponse)
HTTP
POST /DNSDomainService/findAllDNSDomainRoutes
输入对象:FindAllDNSDomainRoutesRequest:
输出对象:FindAllDNSDomainRoutesResponse:
判断是否有域名可选
admin
RPC
existAvailableDomains (ExistAvailableDomainsRequest) returns (ExistAvailableDomainsResponse)
HTTP
POST /DNSDomainService/existAvailableDomains
输入对象:ExistAvailableDomainsRequest:
{ }
输出对象:ExistAvailableDomainsResponse:
{ bool exist; }
检查域名是否在记录中
admin
RPC
existDNSDomainRecord (ExistDNSDomainRecordRequest) returns (ExistDNSDomainRecordResponse)
HTTP
POST /DNSDomainService/existDNSDomainRecord
输入对象:ExistDNSDomainRecordRequest:
{ int64 dnsDomainId; // 名称 string name; // 解析类型,比如A, CNAME等 string type; // 线路 string route; // 值 string value; }
输出对象:ExistDNSDomainRecordResponse:
{ bool isOk; }
从服务商同步域名
admin
RPC
syncDNSDomainsFromProvider (SyncDNSDomainsFromProviderRequest) returns (SyncDNSDomainsFromProviderResponse)
HTTP
POST /DNSDomainService/syncDNSDomainsFromProvider
输入对象:SyncDNSDomainsFromProviderRequest:
输出对象:SyncDNSDomainsFromProviderResponse: