hosting
GET /v1/sites/{siteId}/cdn/tiered-cache
Read tiered caching and smart routing for a site's zone.
אימות
שלחו מפתח API כאסימון נושא (bearer token). על המפתח לכלול את הרשאה sites.view; מפתח שאינו כולל אותה יידחה בסטטוס 403, ולא 404.
נקודת קצה זו אינה דורשת מזהה ארגון. המפתח שלך כבר מזהה את הארגון שאליו הוא שייך, והתגובה מוגבלת אליו בלבד.
נסה זאת
החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/cdn/tiered-cache \
-H "Authorization: Bearer zdk_live_…"מחובר? קונסולת ה-API בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-API הפיזי כך שתוכל לראות את התגובה בפועל. פתח נקודת קצה זו במסוף ה-API
פרטים
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.
פרמטרים
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
siteId (path) | Uuid | כן | Site ID (UUIDv7). |
תשובה
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
site_id | Uuid | כן | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
supported | boolean | כן | A fact about the driver — whether this provider has the feature at all. |
tiered_cache | boolean | כן | — |
tiered_cache_editable | boolean | כן | A 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 will… |
smart_routing | boolean | כן | 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_editable | boolean | כן | — |
שגיאות שנקודה קצה זו עשויה להחזיר
401 · 403 · 404 · 429 · 502 · 503