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 task management7 matching interfaces

Create a task

createHTTPCacheTask

POST/HTTPCacheTaskService/createHTTPCacheTask
Original definition
rpc createHTTPCacheTask(CreateHTTPCacheTaskRequest) returns (CreateHTTPCacheTaskResponse);

Request message

CreateHTTPCacheTaskRequest

Create a task

Request message · Field definitions
message CreateHTTPCacheTaskRequest {
	string type = 1; // Task type: purge deletes cached content; fetch prefetches content into cache
	string keyType = 2; // Key type: key for a URL, prefix for a directory; prefetching supports key only
	repeated string keys = 3; // Keys to purge; the expected input depends on keyType
}

Response message

CreateHTTPCacheTaskResponse
Response message · Field definitions
message CreateHTTPCacheTaskResponse {
	int64 httpCacheTaskId = 1; // Generated task ID
	int64 countKeys = 2; // Keys included in the task
}

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

Setup guide