Rule
List Rules
Getting Started
- Overview
- Installation & Running
- Quickstart: Hello Gateway
- Tutorials & Guides
Core Concepts
Traffic Management
- Rules & Forwarding
- Load Balancing
Rate Limiting & Request Control
- Rate Limiting
- Request Size Limiting
Content Security
- Overview
- NeuralTrust Guardrail
- Contextual Security
- Prompt Jailbreaks Protection
- Toxicity Detection
- Content Moderation
Application Security
Extending Functionality
Observability & Monitoring
- Prometheus
- Metric Exporters
API Reference
- Gateway
- API Key
- Upstream
- Service
- Rule
Rule
List Rules
Returns a list of all rules for a gateway
GET
/
api
/
v1
/
gateways
/
{gateway_id}
/
rules
[
{
"active": true,
"createdAt": "<string>",
"gatewayID": "<string>",
"headers": {},
"id": "<string>",
"methods": [
"<string>"
],
"path": "<string>",
"pluginChain": [
{
"enabled": true,
"id": "<string>",
"level": "gateway",
"name": "<string>",
"parallel": true,
"priority": 123,
"settings": {},
"stage": "pre_request"
}
],
"preserveHost": true,
"public": true,
"retryAttempts": 123,
"serviceID": "<string>",
"stripPath": true,
"updatedAt": "<string>"
}
]
Path Parameters
Gateway ID
Response
200
application/json
List of rules
ID of the gateway or rule this plugin belongs to
Available options:
gateway
, rule
Whether this plugin can run in parallel
Available options:
pre_request
, post_request
, pre_response
, post_response
[
{
"active": true,
"createdAt": "<string>",
"gatewayID": "<string>",
"headers": {},
"id": "<string>",
"methods": [
"<string>"
],
"path": "<string>",
"pluginChain": [
{
"enabled": true,
"id": "<string>",
"level": "gateway",
"name": "<string>",
"parallel": true,
"priority": 123,
"settings": {},
"stage": "pre_request"
}
],
"preserveHost": true,
"public": true,
"retryAttempts": 123,
"serviceID": "<string>",
"stripPath": true,
"updatedAt": "<string>"
}
]