API operation · security group
GET
/security/jails
First published 3 Oct 2026
0.1.0Unchanged since publicationList ban rules
Who may call it
AdministratorResellerCustomer
Token scope, any of
securityreadallAnswers200 OK
The response lists rules shipped with UrbeStack first, followed by custom rules in name order. Each entry includes its log file or journal, filter or pattern, attempt threshold, time window and ban duration in seconds, scope, and number of bans issued in the past 7 days.
The response shows whether each rule is enabled and whether fail2ban is running it. An enabled rule that uses a log file waits for the file to exist. The service_list field contains each service's key and label.
As a command
Run as root on the serverExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X GET "$API/security/jails" \ -H "Authorization: Bearer $TOKEN"
Response ·
200 OK{
"jails": [
{
"active": true,
"bans_week": 1,
"bantime": 1,
"created_at": "2026-09-09T10:15:00Z",
"enabled": true,
"filter": "text",
"inactive_reason": "text",
"journal": "text",
"log": "",
"name": "alice",
"pattern": "text",
"scope": "all",
"service": "text",
"shipped": true,
"tries": 1,
"what": "text",
"window": 1
}
]
}Errors
1 error, each a status and a sentence401Authentication requiredNo error of this operation matches.
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/get-security-jails/