API-Dokumentation

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).

Anfrage

DELETE /api/v1/vps/{id}/firewall/{ruleId}

Erforderlicher Scope: vps:manage

Pfadparameter

Parameter Typ Beschreibung
id string Die VPS-ID
ruleId string Regelbezeichner im Format port-proto-action

Abfrageparameter

Parameter Typ Erforderlich Beschreibung
source string Nein Quell-IP der Regel (Standard: any)

Header

Header Erforderlich Wert
Authorization Ja Bearer DEIN_API_SCHLÜSSEL

Antwort

{
  "data": {
    "port": "8080",
    "proto": "tcp",
    "action": "allow",
    "source": "any",
    "success": true
  }
}

Fehler

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

Beispiel

curl -X DELETE "https://site.quest/api/v1/vps/699cdea2ab57a244bb5273fd/firewall/8080-tcp-allow" \
  -H "Authorization: Bearer DEIN_API_SCHLÜSSEL"

MCP

Diese Aktion ist auch über das manage_firewall MCP-Tool verfügbar.