WAFGO正在准备页面
接入指南

API 文档

开发者资源 · API 参考

查阅 WAFGO API 的服务、请求路径和消息定义。按权限角色浏览接口,快速找到接入所需的参数与返回结构。

下载 JSON 文档
151 个服务1063 个接口
域名记录相关服务找到 18 个接口

批量创建记录

createNSRecords

POST/NSRecordService/createNSRecords
原始定义
rpc createNSRecords(CreateNSRecordsRequest) returns (CreateNSRecordsResponse);

请求消息

CreateNSRecordsRequest

批量创建记录

请求消息 · 字段定义
message CreateNSRecordsRequest {
	int64 nsDomainId = 1;
	string description = 2;
	repeated string names = 3;
	string type = 4;
	string value = 5;
	int32 ttl = 6;
	repeated string nsRouteCodes = 7; // 路线代号
	int32 weight = 14; // 权重

	int32 mxPriority = 8; // mx优先级

	int32 srvPriority = 9; // SRV优先级
	int32 srvWeight = 10; // SRV权重
	int32 srvPort = 11; // SRV端口

	int32 caaFlag = 12; // CAA Flag
	string caaTag = 13; // CAA TAG
}

响应消息

CreateNSRecordsResponse
响应消息 · 字段定义
message CreateNSRecordsResponse {
	repeated int64 nsRecordIds = 1;
}

说明与注释按当前语言显示。接口路径、方法名、字段名和类型与原始接口定义保持一致。

接入指南