hosting
GET /v1/sites/{siteId}/hosting
Get the hosting package a site runs on.
ការផ្ទៀងផ្ទាត់ភាពត្រឹមត្រូវ
បញ្ជូនសោ API ជា bearer token។ សោនេះត្រូវតែមានសិទ្ធិ sites.view។ សោដែលគ្មានសិទ្ធិនេះនឹងត្រូវបដិសេធដោយកូដ 403 មិនមែន 404 ទេ។
ចំនុចបញ្ចប់នេះមិនត្រូវការលេខសម្គាល់ស្ថាប័នទេ។ ពស័្ដកូនរបស់អ្នករួចហើយកំណត់អត្តសញ្ញាណស្ថាប័នដែលវាជាកម្មសិទ្ធិ ហើយការឆ្លើយតបគឺត្រូវបានកំណត់វិសាលភាពទៅតាមនោះ។
សាកល្បង
ជំនួសអ្វីមួយនៅក្នុងសញ្ញាពងក្រពើ < > ដោយប្រើតម្លៃផ្ទាល់ខ្លួនរបស់អ្នក ហើយជំនួសកន្លែងរក្សាទុកសោដោយប្រើសោចេញពីផ្ទាំងគ្រប់គ្រងរបស់អ្នក។
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/hosting \
-H "Authorization: Bearer zdk_live_…"បានចូលគណនីរួចហើយមែនទេ? កុងសូល API ក្នុងផ្ទាំងគ្រប់គ្រងរបស់អ្នក បំពេញលេខសម្គាល់ស្ថាប័នពិតប្រាកដរបស់អ្នក និងសោផ្ទាល់ខ្លួនរបស់អ្នក ហើយដំណើរការសំណើទល់នឹង API ផ្ទាល់ ដូច្នេះអ្នកអាចមើលឃើញការឆ្លើយតបពិតប្រាកដ។ បើកចំណុចបញ្ចប់នេះក្នុងកុងសូល 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… |
កំហុសដែលចំណុចបញ្ចប់នេះអាចបង្វិលត្រឡប់មកវិញ
401 · 403 · 404 · 429 · 503