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

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
waap_rule_blocked_requests = client.waap.ip_info.get_blocked_requests(
    domain_id=0,
    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 domain ID

Response

200
application/json

Successful Response

The response is of type RuleBlockedRequests · object[].

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

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
waap_rule_blocked_requests = client.waap.ip_info.get_blocked_requests(
    domain_id=0,
    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 domain ID

Response

200
application/json

Successful Response

The response is of type RuleBlockedRequests · object[].