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
Plan services9 matching interfaces

Update a plan

updatePlan

POST/PlanService/updatePlan
Original definition
rpc updatePlan(UpdatePlanRequest) returns (RPCSuccess);

Request message

UpdatePlanRequest

Update a plan

Request message · Field definitions
message UpdatePlanRequest {
	int64 planId = 1; // Plan ID
	string name = 2; // Plan name
	string description = 21; // Plan summary
	bool isOn = 3; // Whether enabled
	int64 clusterId = 4; // Cluster ID
	bytes trafficLimitJSON = 5; // Traffic limit
	bytes bandwidthLimitPerNodeJSON = 22; // Per-node bandwidth limit
	bool hasFullFeatures = 20; // Whether all permissions are granted
	bytes featuresJSON = 6; // Permissions in the format [code1, code2, ...]
	string priceType = 7; // Pricing type: traffic, bandwidth, period
	bytes trafficPriceJSON = 8; // Traffic pricing configuration
	bytes bandwidthPriceJSON = 12; // Bandwidth pricing configuration
	float monthlyPrice = 9; // Monthly fee
	float seasonallyPrice = 10; // Quarterly fee
	float yearlyPrice = 11; // Annual fee
	int32 totalServers = 13; // Maximum number of websites
	int32 totalServerNamesPerServer = 14; // Maximum domains per website
	int32 totalServerNames = 15; // Maximum total number of domains
	int64 dailyRequests = 16; // Daily request allowance
	int64 monthlyRequests = 17; // Monthly request allowance
	int64 dailyWebsocketConnections = 18; // Daily WebSocket connection allowance
	int64 monthlyWebsocketConnections = 19; // Monthly WebSocket connection allowance
	bytes maxUploadSizeJSON = 23; // Maximum file upload size @link json:size_capacity
}

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