Website services60 matching interfaces
Create a website
createServer
POST
/ServerService/createServer- Definition file
service_server.proto- Available roles
- AdministratorUser
Original definition
rpc createServer (CreateServerRequest) returns (CreateServerResponse);Request message
CreateServerRequestCreate a website
Request message · Field definitions
message CreateServerRequest {
int64 userId = 1; // Optional: user ID; 0 leaves the user unspecified
int64 adminId = 2; // Optional: administrator ID
string type = 3; // Type: httpProxy (HTTP reverse proxy, used for most CDN services), httpWeb (static file service; reads files from the server without forwarding to an origin), tcpProxy (TCP reverse proxy), udpProxy (UDP reverse proxy)
string name = 4; // Website name, usually a domain name
string description = 5; // Optional: website description
// Configuration fields
bytes serverNamesJSON = 8; // Domain names @link json:server_names
bytes serverNamesJON = 19 [deprecated = true]; // Deprecated; use serverNamesJSON instead
bytes httpJSON = 9; // HTTP settings for type=httpProxy or httpWeb @link json:http_protocol
bytes httpsJSON = 10; // HTTPS settings for type=httpProxy or httpWeb @link json:https_protocol
bytes tcpJSON = 11; // TCP settings for type=tcpProxy @link json:tcp_protocol
bytes tlsJSON = 12; // TLS settings for type=tcpProxy @link json:tls_protocol
bytes udpJSON = 14; // UDP settings for type=udpProxy @link json:udp_protocol
int64 webId = 15; // Optional: Web configuration ID for type=httpProxy or httpWeb; create it through /HTTPWebService/createHTTPWeb and use HTTPWebService to configure caching and related settings
bytes reverseProxyJSON = 16; // Reverse proxy configuration reference, including origins; can be set after creating the website @link json:reverse_proxy_ref
repeated int64 serverGroupIds = 17; // Optional: associated website group IDs
int64 userPlanId = 18; // Optional: plan ID
int64 nodeClusterId = 30; // Deployment cluster ID
bytes includeNodesJSON = 31; // Reserved parameter; leave unset
bytes excludeNodesJSON = 32; // Reserved parameter; leave unset
}Response message
CreateServerResponseResponse message · Field definitions
message CreateServerResponse {
int64 serverId = 1; // Created website ID
}