hosting
GET /v1/sites/{siteId}/cdn/firewall-rules
List a site's custom edge firewall rules.
Autenticazione
Invia una chiave API come token di tipo bearer. La chiave deve disporre dell'autorizzazione sites.view; una chiave sprovvista di tale autorizzazione viene rifiutata con 403 anziché 404.
Questo endpoint non richiede alcun ID organizzazione. La tua chiave identifica già l'organizzazione a cui appartiene e la risposta è limitata ad essa.
Provalo
Sostituisci qualsiasi elemento tra parentesi angolari con i tuoi valori e il segnaposto key con una chiave dalla tua dashboard.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/cdn/firewall-rules \
-H "Authorization: Bearer zdk_live_…"Hai effettuato l'accesso? La console API nella tua dashboard inserisce il tuo ID organizzazione reale e la tua chiave personale, ed esegue la richiesta sull'API live in modo da poter vedere la risposta effettiva. Apri questo endpoint nella console API
Dettagli
The zone's custom block/challenge rules, **in evaluation order**. Rules written in the customer's own provider dashboard are included and flagged `foreign: true`; they are editable here, because it is their account. `expression` is the provider's own matching syntax, passed through unchanged. A neutral matching language that every adapter half-implemented would be a rule that silently matches nothing. Requires `sites.view`.
Parametri
| Nome | Tipo | Obbligatorio | Che cos'è |
|---|---|---|---|
siteId (path) | Uuid | Sì | Site ID (UUIDv7). |
Risposta
| Nome | Tipo | Obbligatorio | Che cos'è |
|---|---|---|---|
supported | boolean | Sì | — |
rules | CdnFirewallRule[] | Sì | In evaluation order. The provider's custom-rules phase is terminating — the first match decides. |
Errori che questo endpoint può restituire
401 · 403 · 404 · 429 · 503