WAFGO正在准备页面
接入指南

API 文档

开发者资源 · API 参考

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

下载 JSON 文档
151 个服务1063 个接口
IP库找到 3 个接口

创建IP库

已废弃

createIPLibrary

POST/IPLibraryService/createIPLibrary
原始定义
rpc createIPLibrary (CreateIPLibraryRequest) returns (CreateIPLibraryResponse) {
		option deprecated = true;
	};

	// 查找最新的IP库
	rpc findLatestIPLibraryWithType (FindLatestIPLibraryWithTypeRequest) returns (FindLatestIPLibraryWithTypeResponse) {
		option deprecated = true;
	};

	// 查找单个IP库
	rpc findEnabledIPLibrary (FindEnabledIPLibraryRequest) returns (FindEnabledIPLibraryResponse) {
		option deprecated = true;
	};

	// 列出某个类型的所有IP库
	rpc findAllEnabledIPLibrariesWithType (FindAllEnabledIPLibrariesWithTypeRequest) returns (FindAllEnabledIPLibrariesWithTypeResponse) {
		option deprecated = true;
	};

	// 删除IP库
	rpc deleteIPLibrary (DeleteIPLibraryRequest) returns (RPCSuccess) {
		option deprecated = true;
	};

请求消息

CreateIPLibraryRequest

创建IP库

请求消息 · 字段定义
message CreateIPLibraryRequest {
	string type = 1;
	int64 fileId = 3;
}

响应消息

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

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

接入指南