compute

GET /v1/compute/servers/{serverId}/firewall

A server's network filter.

Lahat ng compute endpoint

Pagpapatotoo

Magpadala ng API key bilang isang bearer token. Kailangang taglayin ng key ang pahintulot na sites.view; ang key na wala nito ay tatanggihan gamit ang 403, hindi 404.

Ang endpoint na ito ay hindi nangangailangan ng id ng organisasyon. Natutukoy na ng iyong key ang organisasyong kinabibilangan nito, at nakatuon ang tugon dito.

Subukan ito

Palitan ang anuman sa loob ng mga panaklong na may anggulo ng iyong sariling mga halaga, at ang placeholder ng key na may key mula sa iyong dashboard.

curl -X GET https://api.zinndigital.com/v1/compute/servers/{serverId}/firewall \
  -H "Authorization: Bearer zdk_live_…"

Nakalagda? Ang API console sa iyong dashboard ay awtomatikong naglalagay ng iyong tunay na ID ng organisasyon at sariling susi, at pinapatakbo ang kahilingan laban sa live na API upang makita mo ang aktwal na tugon. Buksan ang endpoint na ito sa console ng API

Mga Detalye

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

Mga Parameter

PangalanUriKailanganAno ito
serverId (path)UuidOoThe 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.

Tugon

PangalanUriKailanganAno ito
idstringOoThe provider's firewall id
namestringOoIts name at the provider
attachedbooleanOoWhether a firewall resource is actually applied to this machine.
rulesComputeFirewallRule[]Oo

Mga error na maibabalik ng endpoint na ito

401 · 403 · 404 · 422 · 429 · 503