hosting

GET /v1/sites/{siteId}/cdn/tiered-cache

Read tiered caching and smart routing for a site's zone.

Wszystkie punkty końcowe hosting

Uwierzytelnianie

Wyślij klucz API jako token bearer. Klucz musi posiadać uprawnienie sites.view; klucz bez niego jest odrzucany z kodem 403, a nie 404.

Ten punkt końcowy nie wymaga identyfikatora organizacji. Twój klucz już identyfikuje organizację, do której należy, a odpowiedź jest do niej ograniczona.

Wypróbuj

Zastąp wszystko w nawiasach ostrych własnymi wartościami, a zastępczy znacznik klucza kluczem ze swojego pulpitu nawigacyjnego.

curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/cdn/tiered-cache \
  -H "Authorization: Bearer zdk_live_…"

Zalogowany? Konsola API w Twoim panelu uzupełnia rzeczywiste identyfikator organizacji oraz Twój własny klucz i wykonuje żądanie względem aktywnego API, dzięki czemu możesz zobaczyć rzeczywistą odpowiedź. Otwórz ten punkt końcowy w konsoli API

Szczegóły

`supported` is a fact about the **driver**; `tiered_cache_editable` is a fact about the **zone's plan**, and they are reported separately because a driver that can write the setting in general still cannot write it for a customer on a free plan — measured, the provider answers `editable: false` there. `smart_routing` is `null`, never `false`, when the provider refuses to report it at all. `false` would tell a customer that a paid feature they are not buying is simply switched off. Requires `sites.view`.

Parametry

NazwaTypWymaganeCo to jest
siteId (path)UuidTakSite ID (UUIDv7).

Odpowiedź

NazwaTypWymaganeCo to jest
site_idUuidTakUUIDv7 identifier — sortable by creation time (docs/02 §8).
supportedbooleanTakA fact about the **driver** — whether this provider has the feature at all.
tiered_cachebooleanTak
tiered_cache_editablebooleanTakA fact about the **zone's plan**, reported separately from `supported`. A free zone answers `false` and the control must be disabled rather than offering a save the provider wil…
smart_routingbooleanTak`null` — never `false` — when the provider refuses to report it. `false` would tell a customer that a paid feature they are not buying is switched off.
smart_routing_editablebooleanTak

Błędy, które ten punkt końcowy może zwrócić

401 · 403 · 404 · 429 · 503