Firewall-Regel entfernen
Entfernt eine Firewall-Regel von einem VPS.
Die ruleId hat das Format port-proto-action (z.B. 80-tcp-allow). Für Portbereiche das vollständige Format verwenden (z.B. 8000:8100-tcp-allow).
Entfernt eine Firewall-Regel von einem VPS.
Die ruleId hat das Format port-proto-action (z.B. 80-tcp-allow). Für Portbereiche das vollständige Format verwenden (z.B. 8000:8100-tcp-allow).
Erforderlicher Scope: vps:manage
| Parameter | Typ | Beschreibung |
|---|---|---|
id |
string | Die VPS-ID |
ruleId |
string | Regelbezeichner im Format port-proto-action |
| Parameter | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
source |
string | Nein | Quell-IP der Regel (Standard: any) |
| Header | Erforderlich | Wert |
|---|---|---|
Authorization |
Ja | Bearer DEIN_API_SCHLÜSSEL |
{
"data": {
"port": "8080",
"proto": "tcp",
"action": "allow",
"source": "any",
"success": true
}
}
| Status | Code | Beschreibung |
|---|---|---|
| 400 | INVALID_RULE_ID |
Regel-ID-Format ist ungültig |
| 404 | NOT_FOUND |
VPS nicht gefunden oder kein Zugriff |
| 502 | FIREWALL_ERROR |
Firewall-Operation auf dem Server fehlgeschlagen |
curl -X DELETE "https://site.quest/api/v1/vps/699cdea2ab57a244bb5273fd/firewall/8080-tcp-allow" \
-H "Authorization: Bearer DEIN_API_SCHLÜSSEL"
Diese Aktion ist auch über das manage_firewall MCP-Tool verfügbar.