hosting

POST /v1/sites/{siteId}/cdn/profile

Re-apply the recommended CDN profile to a site's zone.

Bütün hosting nöqtələri

Doğrulama

API açarını bearer token kimi göndərin. Açar hosting.cdn.manage icazəsinə malik olmalıdır; bu icazəsi olmayan açar 404 deyil, 403 xətası ilə rədd edilir.

Bu endpoint heç bir təşkilat ID-si tələb etmir. Sizin açarınız artıq aid olduğu təşkilatı müəyyən edir və cavab həmin təşkilat üçün məhdudlaşdırılır.

Sınaqdan keçir

Bucaqlı mötərizələrdə olan hór şeyi öz qiymətlərinizlə, açar yertutucusunu isə idarə panelinizdən bir açarla əvəz edin.

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

Sistemə daxil olmusunuz? İdarə panelinizdəki API konsolu real təşkilatınızın identifikatorunu və öz açarınızı avtomatik doldurur, sorğunu canlı API-yə qarşı icra edir ki, siz faktiki cavabı görə biləsiniz. Bu son nöqtəni API konsolunda açın

Təfərrüatlar

Puts the zone back to our recommended settings and cache rules — the "reset to recommended defaults" action. Idempotent: applying a profile that is already in force changes nothing at the provider. There is **no request body**. These are pooled provider accounts carrying other customers' zones and a zone resolves by name alone, so the hostname is read from the site row and there is no field through which a neighbouring zone could be named. Settings are applied before cache rules, never the other way round: the rules include a cache-everything rule and the settings include the edge-to-origin TLS mode, so the reverse order would briefly cache pages fetched over a leg whose TLS mode had not yet been corrected. A provider that cannot express part of the profile is reported per capability in the response rather than failing the call. Requires `hosting.cdn.manage`.

Parametrlər

AdTipTələb olunurNədir
siteId (path)UuidBəliSite ID (UUIDv7).

Cavab

AdTipTələb olunurNədir
site_idUuidBəliUUIDv7 identifier — sortable by creation time (docs/02 §8).
profilestringBəliWhich recommended profile applies to this site, chosen by product line — `footprint_free` caches HTML aggressively, `mainstream` leaves that decision to the origin.
settings_supportedbooleanBəliWhether this site's CDN can express the profile's zone settings.
cache_rules_supportedbooleanBəliWhether this site's CDN can express per-request cache rules. Separate from `settings_supported` because a provider may offer one and not the other.
driftedstring[]BəliSetting 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…
settingsSiteCdnProfileSetting[]Bəli
rulesSiteCdnProfileRule[]BəliThe recommended rules, in evaluation order. Bypasses come first.
managedbooleanBəliWhether 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…

Bu son nöqtənin qaytara biləcəyi xətalar

401 · 403 · 404 · 429 · 503