hosting

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

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

Tất cả các điểm cuối hosting

Tất cả tài liệu dành cho nhà phát triển

Xác thực

Gửi khóa API dưới dạng mã thông báo bearer. Khóa này phải có quyền sites.view; khóa không có quyền này sẽ bị từ chối với mã lỗi 403, không phải 404.

Endpoint này không nhận ID tổ chức. Khóa của bạn đã xác định tổ chức mà nó thuộc về và phản hồi được giới hạn trong phạm vi đó.

Dùng thử

Thay thế bất kỳ nội dung nào trong ngoعل (angle brackets) bằng giá trị của riêng bạn và trình giữ chỗ key bằng một key từ trang tổng quan của bạn.

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

Đã đăng nhập? Bảng điều khiển API trong trang quản lý của bạn sẽ tự điền ID tổ chức thực tế và khóa của riêng bạn, sau đó chạy yêu cầu đối với API trực tiếp để bạn có thể xem phản hồi thực tế. Mở điểm cuối này trong bảng điều khiển API

Chi tiết

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.

Tham số

TênLoạiBắt buộcNội dung này là gì
siteId (path)UuidSite ID (UUIDv7).

Phản hồi

TênLoạiBắt buộcNội dung này là gì
site_idUuidUUIDv7 identifier — sortable by creation time (docs/02 §8).
supportedbooleanA fact about the driver — whether this provider has the feature at all.
tiered_cacheboolean
tiered_cache_editablebooleanA 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_routingbooleannull — 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_editableboolean

Các lỗi điểm cuối này có thể trả về

401 · 403 · 404 · 429 · 502 · 503