hosting
GET /v1/sites/{siteId}/hosting
Get the hosting package a site runs on.
प्रमाणीकरण
एपिआई कुञ्जीलाई बियरर टोकन (bearer token) को रूपमा पठाउनुहोस्। कुञ्जीसँग sites.view अनुमति हुनुपर्छ; अनुमति नभएको कुञ्जीलाई 404 होइन, 403 मार्फत अस्वीकार गरिन्छ।
यो इन्डपोइन्टले कुनै संस्थाको आइडी लिँदैन। तपाईंको कुञ्जीले यस अन्तर्गत पर्ने संस्थालाई पहिल्यै पहिचान गर्छ, र प्रतिक्रिया त्यसैमा सीमित हुन्छ।
प्रयास गर्नुहोस्
कोणीय कोष्ठकभित्र भएका जुनसुकै कुरालाई आफ्नो मानहरूद्वारा बदल्नुहोस्, र मुख्य स्थानहोल्डरलाई तपाईंको ड्यासबोर्डको कुञ्जीद्वारा बदल्नुहोस्।
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