GET
/
waap
/
v1
/
ip-info
/
blocked-requests
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
waap_rule_blocked_requests = client.waap.ip_info.get_blocked_requests(
    domain_id=1,
    ip="192.168.1.1",
)
print(waap_rule_blocked_requests)
[
  {
    "rule_name": "<string>",
    "action": "<string>",
    "count": 123
  }
]

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Query Parameters

ip
required

The IP address to check

domain_id
integer
required

The identifier for a domain. When specified, the response will exclusively contain data pertinent to the indicated domain, filtering out information from other domains.

Required range: x > 0

Response

Successful Response

rule_name
string
required

The name of the rule that blocked the request

action
string
required

The action taken by the rule

count
integer
required

The number of requests blocked by the rule