Save firewall fields

Prev Next
Post
/api/settings/firewall/fields
Security
HTTP
Type bearer
Body parameters
{
  "fields": {
    "country": {
      "header": "CloudFront-Viewer-Country",
      "field_type": "string",
      "info": "The country as represented by the 2 character ISO code.",
      "operators": [
        "equals",
        "contains",
        "startswith",
        "endswith"
      ]
    },
    "client_ip": {
      "header": "clientip",
      "field_type": "ip",
      "info": "The IP address(es) in CIDR notation. Example: 120.121.122.0/24, 180.179.178.176/32.",
      "operators": [
        "contains"
      ]
    }
  }
}
Expand All
object
fields
object
property*
object (Field) additionalProperties
header
string
field_type
string

Allowed values are 'ip', 'string'

info
string
operators
Array of string
string
Responses
201

Firewall rules updated successfully

Expand All
object
fields
object
property*
object (Field) additionalProperties
header
string
field_type
string

Allowed values are 'ip', 'string'

info
string
operators
Array of string
string