WAFGOPreparing your page
Setup guide

API documentation

DEVELOPER RESOURCES · API REFERENCE

Explore WAFGO API services, request paths and message definitions. Browse by permission role to find the parameters and response structures for your integration.

Download JSON documentation
151 services1063 interfaces
IP entry management16 matching interfaces

Create a group of IP addresses

createIPItems

POST/IPItemService/createIPItems
Original definition
rpc createIPItems(CreateIPItemsRequest) returns (CreateIPItemsResponse);

Request message

CreateIPItemsRequest

Create a group of IP addresses

Request message · Field definitions
message CreateIPItemsRequest {
	repeated IPItem ipItems = 1; // IP addresses to add


	message IPItem {
		int64 ipListId = 1; // IP list ID
		string value = 15; // Original IP value, such as a single IP, IP range or CIDR; when specified, ipFrom and ipTo are not required
		string ipFrom = 2; // Starting IP address
		string ipTo = 3; // Ending IP address (optional)
		int64 expiredAt = 4; // Expiration timestamp (optional)
		string reason = 5; // Reason for adding the entry (optional)
		string type = 6; // Type
		string eventLevel = 7; // Severity

		int64 nodeId = 8; // Owner node ID
		int64 serverId = 9; // Owner service ID

		int64 sourceNodeId = 10;
		int64 sourceServerId = 11;
		int64 sourceHTTPFirewallPolicyId = 12;
		int64 sourceHTTPFirewallRuleGroupId = 13;
		int64 sourceHTTPFirewallRuleSetId = 14;
	}
}

Response message

CreateIPItemsResponse
Response message · Field definitions
message CreateIPItemsResponse {
	repeated int64 ipItemIds = 1; // IDs of the created IP entries
}

Descriptions and comments follow your language. Request paths, method names, field names and types match the original API definitions.

Setup guide