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

Quickly create a basic HTTP website

createBasicHTTPServer

POST/ServerService/createBasicHTTPServer
Original definition
rpc createBasicHTTPServer(CreateBasicHTTPServerRequest) returns (CreateBasicHTTPServerResponse);

Request message

CreateBasicHTTPServerRequest

Quickly create a basic HTTP website

Request message · Field definitions
message CreateBasicHTTPServerRequest {
	int64 nodeClusterId = 1; // Deployment cluster ID; not required when a user creates the resource
	int64 userId = 2; // Administrators can specify a user ID when creating a website; 0 leaves it unspecified
	repeated string domains = 3; // Domain names
	repeated int64 sslCertIds = 4; // Certificate IDs used for HTTPS
	repeated string originAddrs = 5; // Origin addresses; each must include a protocol, such as http://example.com

	bool enableWebsocket = 6; // Optional: whether WebSocket is enabled
}

Response message

CreateBasicHTTPServerResponse
Response message · Field definitions
message CreateBasicHTTPServerResponse {
	int64 serverId = 1; // Created website ID
}

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

Setup guide