方法列表
创建记录
admin
user
RPC
createNSRecord (CreateNSRecordRequest) returns (CreateNSRecordResponse)
HTTP
POST /NSRecordService/createNSRecord
输入对象:CreateNSRecordRequest:
{ int64 nsDomainId; // 描述(备注) string description; // 名称 string name; string type; string value; int32 ttl; // 路线代号 []string nsRouteCodes; // 权重 int32 weight; // mx优先级 int32 mxPriority; // SRV优先级 int32 srvPriority; // SRV权重 int32 srvWeight; // SRV端口 int32 srvPort; // CAA Flag int32 caaFlag; // CAA TAG string caaTag; }
输出对象:CreateNSRecordResponse:
批量创建记录
admin
user
RPC
createNSRecords (CreateNSRecordsRequest) returns (CreateNSRecordsResponse)
HTTP
POST /NSRecordService/createNSRecords
输入对象:CreateNSRecordsRequest:
{ int64 nsDomainId; // 描述(备注) string description; []string names; string type; string value; int32 ttl; // 路线代号 []string nsRouteCodes; // 权重 int32 weight; // mx优先级 int32 mxPriority; // SRV优先级 int32 srvPriority; // SRV权重 int32 srvWeight; // SRV端口 int32 srvPort; // CAA Flag int32 caaFlag; // CAA TAG string caaTag; }
输出对象:CreateNSRecordsResponse:
为一组域名批量创建记录
admin
user
RPC
createNSRecordsWithDomainNames (CreateNSRecordsWithDomainNamesRequest) returns (RPCSuccess)
HTTP
POST /NSRecordService/createNSRecordsWithDomainNames
输入对象:CreateNSRecordsWithDomainNamesRequest:
输出对象:RPCSuccess:
{ }
批量修改一组域名的一组记录
admin
user
RPC
updateNSRecordsWithDomainNames (UpdateNSRecordsWithDomainNamesRequest) returns (RPCSuccess)
HTTP
POST /NSRecordService/updateNSRecordsWithDomainNames
输入对象:UpdateNSRecordsWithDomainNamesRequest:
输出对象:RPCSuccess:
{ }
批量删除一组域名的一组记录
admin
user
RPC
deleteNSRecordsWithDomainNames (DeleteNSRecordsWithDomainNamesRequest) returns (RPCSuccess)
HTTP
POST /NSRecordService/deleteNSRecordsWithDomainNames
输入对象:DeleteNSRecordsWithDomainNamesRequest:
输出对象:RPCSuccess:
{ }
批量一组域名的一组记录启用状态
admin
user
RPC
updateNSRecordsIsOnWithDomainNames (UpdateNSRecordsIsOnWithDomainNamesRequest) returns (RPCSuccess)
HTTP
POST /NSRecordService/updateNSRecordsIsOnWithDomainNames
输入对象:UpdateNSRecordsIsOnWithDomainNamesRequest:
输出对象:RPCSuccess:
{ }
导入域名解析
admin
user
RPC
importNSRecords (ImportNSRecordsRequest) returns (RPCSuccess)
HTTP
POST /NSRecordService/importNSRecords
输入对象:ImportNSRecordsRequest:
{ []Record nsRecords; // 用户ID int64 userId; Record { string nsDomainName; // 名称 string name; string type; string value; int32 ttl; // MX优先级 int32 mxPriority; // 权重 int32 weight; // SRV优先级 int32 srvPriority; // SRV权重 int32 srvWeight; // SRV端口 int32 srvPort; // CAA Flag int32 caaFlag; // CAA TAG string caaTag; } }
输出对象:RPCSuccess:
{ }
修改记录
admin
user
RPC
updateNSRecord (UpdateNSRecordRequest) returns (RPCSuccess)
HTTP
POST /NSRecordService/updateNSRecord
输入对象:UpdateNSRecordRequest:
{ int64 nsRecordId; // 描述(备注) string description; // 名称 string name; string type; string value; int32 ttl; // 是否启用 bool isOn; // 路线代号 []string nsRouteCodes; // 权重 int32 weight; // mx优先级 int32 mxPriority; // SRV优先级 int32 srvPriority; // SRV权重 int32 srvWeight; // SRV端口 int32 srvPort; // CAA Flag int32 caaFlag; // CAA TAG string caaTag; }
输出对象:RPCSuccess:
{ }
删除记录
admin
user
RPC
deleteNSRecord (DeleteNSRecordRequest) returns (RPCSuccess)
HTTP
POST /NSRecordService/deleteNSRecord
输入对象:DeleteNSRecordRequest:
输出对象:RPCSuccess:
{ }
计算记录数量
admin
user
RPC
countAllNSRecords (CountAllNSRecordsRequest) returns (RPCCountResponse)
HTTP
POST /NSRecordService/countAllNSRecords
输入对象:CountAllNSRecordsRequest:
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
查询相同记录名的记录数
admin
user
RPC
countAllNSRecordsWithName (CountAllNSRecordsWithNameRequest) returns (RPCCountResponse)
HTTP
POST /NSRecordService/countAllNSRecordsWithName
输入对象:CountAllNSRecordsWithNameRequest:
输出对象:RPCCountResponse:
{ // 数量 int64 count; }
读取单页记录
admin
user
RPC
listNSRecords (ListNSRecordsRequest) returns (ListNSRecordsResponse)
HTTP
POST /NSRecordService/listNSRecords
输入对象:ListNSRecordsRequest:
输出对象:ListNSRecordsResponse:
查询单个记录信息
admin
user
RPC
findNSRecord (FindNSRecordRequest) returns (FindNSRecordResponse)
HTTP
POST /NSRecordService/findNSRecord
输入对象:FindNSRecordRequest:
输出对象:FindNSRecordResponse:
使用名称和类型查询单个记录信息
admin
user
RPC
findNSRecordWithNameAndType (FindNSRecordWithNameAndTypeRequest) returns (FindNSRecordWithNameAndTypeResponse)
HTTP
POST /NSRecordService/findNSRecordWithNameAndType
输入对象:FindNSRecordWithNameAndTypeRequest:
输出对象:FindNSRecordWithNameAndTypeResponse:
使用名称和类型查询多个记录信息
admin
user
RPC
findNSRecordsWithNameAndType (FindNSRecordsWithNameAndTypeRequest) returns (FindNSRecordsWithNameAndTypeResponse)
HTTP
POST /NSRecordService/findNSRecordsWithNameAndType
输入对象:FindNSRecordsWithNameAndTypeRequest:
输出对象:FindNSRecordsWithNameAndTypeResponse:
查询记录健康检查设置
admin
user
RPC
findNSRecordHealthCheck (FindNSRecordHealthCheckRequest) returns (FindNSRecordHealthCheckResponse)
HTTP
POST /NSRecordService/findNSRecordHealthCheck
输入对象:FindNSRecordHealthCheckRequest:
{ // 记录ID int64 nsRecordId; }
输出对象:FindNSRecordHealthCheckResponse:
{ // 记录健康检查配置 bytes nsRecordHealthCheckJSON; }
修改记录健康检查设置
admin
user
RPC
updateNSRecordHealthCheck (UpdateNSRecordHealthCheckRequest) returns (RPCSuccess)
HTTP
POST /NSRecordService/updateNSRecordHealthCheck
输入对象:UpdateNSRecordHealthCheckRequest:
{ // 记录ID int64 nsRecordId; // 记录健康检查配置 bytes nsRecordHealthCheckJSON; }
输出对象:RPCSuccess:
{ }
手动修改记录在线状态
admin
user
RPC
updateNSRecordIsUp (UpdateNSRecordIsUpRequest) returns (RPCSuccess)
HTTP
POST /NSRecordService/updateNSRecordIsUp
输入对象:UpdateNSRecordIsUpRequest:
{ // 记录ID int64 nsRecordId; // 是否在线 bool isUp; }
输出对象:RPCSuccess:
{ }