hosting

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

Turn tiered caching on or off.

Tüm hosting uç noktaları

Tüm geliştirici belgeleri

Kimlik Doğrulama

Bearer token olarak bir API anahtarı gönderin. Anahtar hosting.cdn.manage iznine sahip olmalıdır; bu izne sahip olmayan bir anahtar 404 ile değil, 403 ile reddedilir.

Bu uç nokta hiçbir organizasyon kimliği almaz. Anahtarınız zaten ait olduğu organizasyonu tanımlar ve yanıt bu organizasyonla sınırlandırılır.

Dene

Köşeli parantez içindeki her şeyi kendi değerlerinizle ve anahtar yer tutucusunu panonuzdan bir anahtarla değiştirin.

curl -X PUT https://api.zinndigital.com/v1/sites/{siteId}/cdn/tiered-cache \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "enabled": <boolean> }'

Oturum açtınız mı? Panonuzdaki API konsolu, gerçek organizasyon kimliğinizi ve kendi anahtarınızı otomatik olarak doldurur ve isteği canlı API üzerinde çalıştırarak gerçek yanıtı görmenizi sağlar. Bu uç noktayı API konsolunda açın

Ayrıntılar

Refused before the provider is called when the zone's plan does not include it, because the provider's own refusal is a 4xx we cannot phrase usefully and a save button that produced it would look like our bug rather than their plan. Requires hosting.cdn.manage.

Parametreler

AdTürZorunluNe olduğu
siteId (path)UuidEvetSite ID (UUIDv7).

İstek gövdesi

AdTürZorunluNe olduğu
enabledbooleanEvet

Yanıt

AdTürZorunluNe olduğu
site_idUuidEvetUUIDv7 identifier — sortable by creation time (docs/02 §8).
supportedbooleanEvetA fact about the driver — whether this provider has the feature at all.
tiered_cachebooleanEvet
tiered_cache_editablebooleanEvetA 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_routingbooleanEvetnull — 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_editablebooleanEvet

Bu uç noktanın dönderebileceği hatalar

401 · 403 · 404 · 422 · 429 · 502 · 503