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
69 services354 interfaces
Website services47 matching interfaces

Copy configuration between websites

copyServerConfig

POST/ServerService/copyServerConfig
Original definition
rpc copyServerConfig(CopyServerConfigRequest) returns (RPCSuccess);

Request message

CopyServerConfigRequest

Copy configuration between websites

Request message · Field definitions
message CopyServerConfigRequest {
	int64 serverId = 1; // Source website ID to copy from
	string configCode = 2; // Configuration codes to copy: stat: statistics; charset: character encoding; userAgent: UA lists; referers: hotlink protection; webp: WebP settings; accessLog: access logs; cc: CC protection settings; hostRedirects: URL redirects; root: ROOT settings; remoteAddr: visitor settings; requestLimit: request limits; compression: content compression; optimization: page optimization; cache: cache settings; uam: five-second challenge settings; websocket: WebSocket settings; pages: custom pages; auth: access authentication; reverseProxy: reverse proxy settings; waf: WAF settings
	string targetType = 3; // Target type: servers, groups, cluster (all websites in the current cluster; administrators only), or user (all websites of the current user)
	repeated int64 targetServerIds = 4; // Target website IDs
	repeated int64 targetServerGroupIds = 5; // Target website group IDs
	int64 targetClusterId = 6; // Target cluster ID
	int64 targetUserId = 7; // Target user ID

	bool wafCopyRegions = 30; // Optional, for standalone WAF configurations: whether to copy region blocking settings
}

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