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
Cache policy service9 matching interfaces

Create a cache policy

createHTTPCachePolicy

POST/HTTPCachePolicyService/createHTTPCachePolicy
Original definition
rpc createHTTPCachePolicy (CreateHTTPCachePolicyRequest) returns (CreateHTTPCachePolicyResponse);

Request message

CreateHTTPCachePolicyRequest

Create a cache policy

Request message · Field definitions
message CreateHTTPCachePolicyRequest {
	bool isOn = 1;
	string name = 2;
	string description = 3;
	bytes capacityJSON = 4;
	bytes maxSizeJSON = 6;
	string type = 7;
	bytes optionsJSON = 8;
	bool syncCompressionCache = 9;
	bytes fetchTimeoutJSON = 10; // Prefetch timeout
}

Response message

CreateHTTPCachePolicyResponse
Response message · Field definitions
message CreateHTTPCachePolicyResponse {
	int64 httpCachePolicyId = 1;
}

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

Setup guide