Skip to main content
GET
Retrieve a domains's custom rules

Authorizations

Authorization
string
header
required

Project API access key.

Aptranet-Secret
string
header
required

Current secret for the access key.

Path Parameters

domain_id
integer
required

Query Parameters

ordering
enum<string> | null
Available options:
id,
name,
description,
enabled,
action,
-id,
-name,
-description,
-enabled,
-action
limit
integer
default:100
Required range: 0 <= x <= 100
offset
integer
default:0
Required range: 0 <= x <= 100000
name
string
Example:

"Block by specific IP rule."

description
string
Example:

"This rule blocks all the requests coming form a specific IP address."

action
enum<string>
Available options:
allow,
block,
captcha,
handshake,
monitor,
tag
enabled
boolean
Example:

false

Response

Successful response.

results
object[]
required
count
integer
required
limit
integer
offset
integer