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
Origin management service5 matching interfaces

Update an origin

updateOrigin

POST/OriginService/updateOrigin
Original definition
rpc updateOrigin (UpdateOriginRequest) returns (RPCSuccess);

Request message

UpdateOriginRequest

Update an origin

Request message · Field definitions
message UpdateOriginRequest {
	int64 originId = 1; // Origin ID
	string name = 2; // Optional
	NetworkAddress addr = 3; // Origin network address
	bytes ossJSON = 16; // OSS configuration; required when protocol in the origin network address starts with oss:
	string description = 4; // Optional
	int32 weight = 5; // Weight, at least 0; usually set to 10
	bool isOn = 6; // Whether enabled
	bytes connTimeoutJSON = 7; // Optional
	bytes readTimeoutJSON = 8; // Optional
	bytes idleTimeoutJSON = 9; // Optional
	int32 maxConns = 10; // Optional
	int32 maxIdleConns = 11; // Optional
	repeated string domains = 12; // Optional
	bytes certRefJSON = 13; // Optional
	string host = 14; // Optional
	bool followPort = 15; // Optional
	bool http2Enabled = 17; // Optional: whether HTTP/2 is supported; applies only to HTTPS origins
}

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