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

Update a firewall policy

updateHTTPFirewallPolicy

POST/HTTPFirewallPolicyService/updateHTTPFirewallPolicy
Original definition
rpc updateHTTPFirewallPolicy (UpdateHTTPFirewallPolicyRequest) returns (RPCSuccess);

Request message

UpdateHTTPFirewallPolicyRequest

Update a firewall policy

Request message · Field definitions
message UpdateHTTPFirewallPolicyRequest {
	int64 httpFirewallPolicyId = 1;
	bool isOn = 2;
	string name = 3;
	string description = 4;
	repeated string firewallGroupCodes = 5;
	bytes blockOptionsJSON = 6; // Block action configuration
	bytes pageOptionsJSON = 15; // Display page action configuration
	bytes captchaOptionsJSON = 11; // CAPTCHA action configuration
	bytes jsCookieOptionsJSON = 16; // JSCookie action configuration
	string mode = 7;
	bool useLocalFirewall = 8; // Whether to use the local firewall
	bytes synFloodJSON = 9; // SYN flood settings
	bytes LogJSON = 10; // Log settings
	int64 maxRequestBodySize = 12; // Maximum file size in bytes
	string denyCountryHTML = 13; // Region blocking message
	string denyProvinceHTML = 14; // Province blocking message
}

Response message

RPCSuccess

Operation successful

Response message · Field definitions
message RPCSuccess {

}

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

Setup guide