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

References

HTTP protocol configuration

json:http_protocol

Original definition
# HTTP protocol configuration

## Definition
~~~json
{
	"isOn": "Whether enabled",
  	"listen": [
      {
		"protocol": "Protocol",
		"host": "Host address, usually empty",
		"portRange": "Port or port range"
	  },
	  ...
	]
}
~~~

## Examples

### Listen on port 80
~~~json
{
  "isOn": true,
  "listen": [
    {
      "protocol": "http",
      "host": "",
      "portRange": "80"
	}
  ]
}
~~~

### Listen on ports 80 and 8080
~~~json
{
  "isOn": true,
  "listen": [
    {
      "protocol": "http",
      "portRange": "80"
	},
    {
      "protocol": "http",
      "portRange": "8080"
	}
  ]
}
~~~

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

Setup guide