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
HTTP firewall (WAF) service14 matching interfaces

Create an empty firewall policy

createEmptyHTTPFirewallPolicy

POST/HTTPFirewallPolicyService/createEmptyHTTPFirewallPolicy
Original definition
rpc createEmptyHTTPFirewallPolicy (CreateEmptyHTTPFirewallPolicyRequest) returns (CreateEmptyHTTPFirewallPolicyResponse);

Request message

CreateEmptyHTTPFirewallPolicyRequest

Create an empty firewall policy

Request message · Field definitions
message CreateEmptyHTTPFirewallPolicyRequest {
	bool isOn = 1;
	string name = 2;
	string description = 3;
	int64 serverId = 4;
	int64 serverGroupId = 5;
}

Response message

CreateEmptyHTTPFirewallPolicyResponse
Response message · Field definitions
message CreateEmptyHTTPFirewallPolicyResponse {
	int64 httpFirewallPolicyId = 1;
}

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

Setup guide