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 TCP website

createBasicTCPServer

POST/ServerService/createBasicTCPServer
Original definition
rpc createBasicTCPServer(CreateBasicTCPServerRequest) returns (CreateBasicTCPServerResponse);

Request message

CreateBasicTCPServerRequest

Quickly create a basic TCP website

Request message · Field definitions
message CreateBasicTCPServerRequest {
	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 int32 tcpPorts = 3; // TCP port
	repeated int32 tlsPorts = 4; // TLS port
	repeated int64 sslCertIds = 5; // Certificate IDs used for TLS
	repeated string originAddrs = 6; // Origin addresses; each must include a protocol, such as tcp://example.com or tls://example.com
}

Response message

CreateBasicTCPServerResponse
Response message · Field definitions
message CreateBasicTCPServerResponse {
	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