WAFGO正在准备页面
接入指南

API 文档

开发者资源 · API 参考

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

下载 JSON 文档
151 个服务1063 个接口
IP库文件管理找到 12 个接口

创建IP库文件

createIPLibraryFile

POST/IPLibraryFileService/createIPLibraryFile
原始定义
rpc createIPLibraryFile(CreateIPLibraryFileRequest) returns (CreateIPLibraryFileResponse);

请求消息

CreateIPLibraryFileRequest

创建IP库文件

请求消息 · 字段定义
message CreateIPLibraryFileRequest {
	string name = 1;
	string template = 2;
	repeated string emptyValues = 3;
	int64 fileId = 4;
	bytes countriesJSON = 5;
	bytes provincesJSON = 6;
	bytes citiesJSON = 7;
	bytes townsJSON = 8;
	bytes providersJSON = 9;
	string password = 10; // 密码
}

响应消息

CreateIPLibraryFileResponse
响应消息 · 字段定义
message CreateIPLibraryFileResponse {
	int64 ipLibraryFileId = 1;
}

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

接入指南