hosting
GET /v1/sites/{siteId}/cdn/profile
Read a site's recommended CDN profile and where the zone has drifted from it.
Autentifikimi
Drgoni një çelës API si një token mbajtës. Çelësi duhet të ketë lejen sites.view; një çelës pa të refuzohet me 403, jo 404.
Ky pikëndalim nuk pranon id të organizatës. Çelësi juaj tashmë identifikon organizatën së cilës i përket dhe përgjigjja kufizohet vetëm për atë.
Provoje
Zëvendësoni çdo gjë brenda kllapave këndore me vlerat tuaja dhe vendbanuesin e çelësit me një çelës nga paneli juaj.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/cdn/profile \
-H "Authorization: Bearer zdk_live_…"Jeni kyçur? Konsola e API-së në panelin tuaj plotëson ID-në tuaj reale të organizatës dhe çelësin tuaj, dhe ekzekuton kërkesën kundrejt API-së live, kështu që ju mund të shihni përgjigjen aktuale. Hapni këtë pikë fundore në konsolën e API-së
Detajet
Every site is given a recommended edge configuration at provision time — settings plus ordered cache rules — chosen by product line and built entirely from **free** provider features. This reads what the provider currently has and names the difference. `drifted` lists the knobs whose live value differs from the recommendation, and includes `cache_rules` when a recommended rule is missing at the provider. A read **never** re-applies anything: a setting a customer or operator deliberately changed in the provider's own dashboard is shown as drift rather than silently overwritten, and putting it back is an explicit `POST`. `settings_supported` and `cache_rules_supported` are separate booleans because a provider may express one and not the other. A site that is not served through our CDN is a `404`. Requires `sites.view`.
Parametrat
| Emri | Lloji | Kërkohet | Çfarë është kjo |
|---|---|---|---|
siteId (path) | Uuid | Po | Site ID (UUIDv7). |
Përgjigja
| Emri | Lloji | Kërkohet | Çfarë është kjo |
|---|---|---|---|
site_id | Uuid | Po | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
profile | string | Po | Which recommended profile applies to this site, chosen by product line — `footprint_free` caches HTML aggressively, `mainstream` leaves that decision to the origin. |
settings_supported | boolean | Po | Whether this site's CDN can express the profile's zone settings. |
cache_rules_supported | boolean | Po | Whether this site's CDN can express per-request cache rules. Separate from `settings_supported` because a provider may offer one and not the other. |
drifted | string[] | Po | Setting keys whose live value differs from the recommendation, plus `cache_rules` when a recommended rule is missing at the provider. Empty means the zone matches what we recomm… |
settings | SiteCdnProfileSetting[] | Po | — |
rules | SiteCdnProfileRule[] | Po | The recommended rules, in evaluation order. Bypasses come first. |
managed | boolean | Po | Whether the customer has asked us to keep this profile applied. `false` — the default — means drift is reported and nothing is corrected without a person pressing the button. `t… |
Gabimet që ky pikëndalim mund të kthejë
401 · 403 · 404 · 429 · 503