compute
GET /v1/compute/servers/{serverId}/firewall
A server's network filter.
Autentizace
Zašlete API klíč jako nosný token (bearer token). Klíč musí mít oprávnění sites.view; klíč bez něj je odmítnut s kódem 403, nikoli 404.
Tento koncový bod nevyžaduje žádné ID organizace. Váš klíč již identifikuje organizaci, ke které patří, a odpověď je na ni omezena.
Vyzvednout
Nahraďte cokoli v závorkách vlastními hodnotami a zástupný symbol klíče klíčem z vašeho řídicího panelu.
curl -X GET https://api.zinndigital.com/v1/compute/servers/{serverId}/firewall \
-H "Authorization: Bearer zdk_live_…"Přihlášeni? Konzole API ve vašem dashboardu automaticky doplní vaše skutečné ID organizace i váš vlastní klíč a odešle požadavek na živé API, abyste viděli reálnou odpověď. Otevřete tento koncový bod v konzoli API
Podrobnosti
The firewall applied to this machine and the rules in force. ⛔ Read `attached` before reading `rules`. No firewall and an empty firewall both come back looking empty and mean opposite things — one is "nothing is protecting this machine", the other is "a filter is in place and permits nothing". Requires `sites.view`.
Parametry
| Název | Typ | Požadováno | Co to je |
|---|---|---|---|
serverId (path) | Uuid | Ano | The server's id, as `listComputeServers` reports it. **Ours** (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine. |
Odpověď
| Název | Typ | Požadováno | Co to je |
|---|---|---|---|
id | string | Ano | The provider's firewall id |
name | string | Ano | Its name at the provider |
attached | boolean | Ano | Whether a firewall resource is actually applied to this machine. |
rules | ComputeFirewallRule[] | Ano | — |
Chyby, které může tento koncový bod vrátit
401 · 403 · 404 · 422 · 429 · 503