hosting

GET /v1/sites/{siteId}/hosting

Get the hosting package a site runs on.

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

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}/hosting \
  -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

The customer-facing control surface for a site on the resold hosting range (docs/62 §3.7): which package template it was created on, which data centre it lives in, and what that package can actually do. `features` are **generated** from the vendor's own 107-key capability matrix and mapped to our stable machine identifiers, so a feature can never be advertised after the capability behind it is gone (docs/62 §6g). They are i18n key suffixes, not display text: the client renders each as `hosting.feature.<id>`. A site that does not run on a vendor hosting package — anything on our own fleet — has no such resource and returns `404`, exactly as an out-of-scope or unknown id does. 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ì
deploy_targetstringWhere the site runs (a `DeployTarget` value, e.g. `twentyi_shared`). A machine identifier the client localises, never rendered raw.
package_typestringThe vendor package-template reference the site was created on. Staff-facing: it ties a support conversation to a template.
package_type_labelstringThe package template's own label at the vendor. **Staff-facing only** — it is vendor-authored English and must not be rendered to a customer (§2.7).
locationstringThe data centre code the site lives in, or empty when the customer chose none and the vendor's default applied.
featuresstring[]Our stable feature identifiers, generated from the vendor's capability matrix. i18n key suffixes (`hosting.feature.<id>`), never display text and never a vendor string. A capabi…
allowancesobjectCustomer-visible quantities, keyed by our stable identifier.
readybooleanWhether the vendor reports the package's setup as complete. Reported rather than inferred from the site's status: our row says what we asked for, this says what the vendor finis…

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

401 · 403 · 404 · 429 · 503