hosting
GET /v1/sites/{siteId}/hosting
Get the hosting package a site runs on.
Упълномощаване
Изпратете API ключ като токен за носене. Ключът трябва да притежава разрешението sites.view; ключ без него се отхвърля с 403, а не с 404.
Този ендпойнт не изисква идентификатор на организация. Вашият ключ вече идентифицира организацията, към която принадлежи, и отговорът е ограничен до нея.
Опитайте
Заменете всичко в квадратни скоби със собствени стойности, а ключовия заместващ символ – с ключ от вашето табло за управление.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/hosting \
-H "Authorization: Bearer zdk_live_…"Влязохте ли в профила си? API конзолата във вашето табло за управление попълва действителното идентификационно число на вашата организация и вашия собствен ключ и изпълнява заявката спрямо реалното API, за да можете да видите действителния отговор. Отворете този крайpoint в API конзолата
Детайли
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`.
Параметри
| Име | Тип | Задължително | Какво представлява |
|---|---|---|---|
siteId (path) | Uuid | Да | Site ID (UUIDv7). |
Отговор
| Име | Тип | Задължително | Какво представлява |
|---|---|---|---|
deploy_target | string | Да | Where the site runs (a `DeployTarget` value, e.g. `twentyi_shared`). A machine identifier the client localises, never rendered raw. |
package_type | string | Да | The vendor package-template reference the site was created on. Staff-facing: it ties a support conversation to a template. |
package_type_label | string | Да | The 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). |
location | string | Да | The data centre code the site lives in, or empty when the customer chose none and the vendor's default applied. |
features | string[] | Да | 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… |
allowances | object | Да | Customer-visible quantities, keyed by our stable identifier. |
ready | boolean | Да | Whether 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… |
Грешки, които този крайpoint може да върне
401 · 403 · 404 · 429 · 503