Firewall Rules

List account firewall rules

Changed on

Returns all firewall rules across all domains belonging to the authenticated account. Supports filtering, ordering, and pagination.

get/waap/v2/firewall-rules

Request

  • Base URL
    https://api.gcore.com
  • URL
    https://api.gcore.com/waap/v2/firewall-rules
  • Auth
    HTTP apikey

Query parameters

ordering'id' | 'name' | 'description' | 'enabled' | 'action' | '-id' | '-name' | '-description' | '-enabled' | '-action' nullable

Order results by field (prefix with - for descending)

limitinteger

Number of items to return

offsetinteger

Number of items to skip

namestring

Filter rules by name (supports wildcards)

Example:Block by specific IP rule.
descriptionstring

Filter rules by description (supports wildcards)

Example:Blocks all requests from a specific IP address.
action'allow' | 'block'

Filter by action type

enabledboolean

Filter by enabled status

Example:true
domain_idsinteger[]

Filter by domain IDs (can specify multiple)

[
  123,
  456
]

Response

Successful Response

limitinteger required

Number of items requested in the response

offsetinteger required

Items response offset used

countinteger required

Number of items contain in the response

Example response

{
  "results": [
    {
      "name": "Block foobar bot",
      "action": {
        "block": {
          "action_duration": "12h"
        }
      }
    }
  ]
}

Changes

    • info

      the response property // became required for the status

    • info

      the response's property default value was removed for the status

    • info

      the response's property default value was added for the status

    • info

      the response's property default value 403 was added for the status