compute
GET /v1/compute/add-ons
What can be bought to run ON a Zinn® Private Cloud machine.
Πισtoποίηση
Στείλτε ένα κλειδί API ως διακριτικό φορέα (bearer token). Το κλειδί πρέπει να διαθέτει το δικαίωμα sites.view· ένα κλειδί που δεν το διαθέτει απορρίπτεται με 403, όχι 404.
Αυτό το τελικό σημείο δεν δέχεται αναγνωριστικό οργανισμού. Το κλειδί σας προσδιορίζει ήδη τον οργανισμό στον οποίο ανήκει, και η απάντηση περιορίζεται σε αυτόν.
Δοκιμάστε το
Ατικatastήstε ό,τι βρίskεtai μέσα σe γώniaδeς μe τis δikές sas timές, kai to placeholder klεidioύ μe éna klεidi apó ton pinaka ελέgchou sas.
curl -X GET https://api.zinndigital.com/v1/compute/add-ons \
-H "Authorization: Bearer zdk_live_…"Συνδεθήκατε; Η κονσόλα API στον πίνακα ελέγχου σας συμπληρώνει το πραγματικό αναγνωριστικό του οργανισμού σας και το δικό σας κλειδί, και εκτελεί το αίτημα στο ζωντανό API, ώστε να μπορείτε να δείτε την πραγματική απόκριση. Ανοίξτε αυτό το τελικό σημείο στην κονσόλα API
Λεπτομέρειες
The add-on catalogue — bare, CloudLinux, Plesk, and the managed service — priced in the currency asked for and filtered to what is actually in stock. ⭐ These are the decisions `docs/127` §2 took on 2026-08-15 (D1–D5), expressed as rows a customer can buy. They are **orthogonal to the machine size**: a customer picks a size *and* an add-on, and the two multiply rather than choosing between each other. What the API calls a `ComputeTier` elsewhere is the SIZE; this is the software. ⛔ **An empty list is the correct answer on the resold range**, not an error. There the supplier installs its own managed image and exposes no `user_data` seam, so there is no add-on question to answer — and rendering a picker with one disabled option would imply the others are coming. ⛔ **A row absent from this list in one currency is not sold in that currency**, never converted at today's rate: a machine and the add-on beside it must not be quoted from two different sources, or the same basket costs two different amounts on two days. Requires `sites.view`.
Παράμετροι
| Όνομα | Τύpος | Υποχρεωτικό | Τι είναι |
|---|---|---|---|
currency (query) | string | Όχι | ISO 4217 code to price in. An add-on with no price in it is omitted. |
target (query) | string | Όχι | The deploy target. Only `own_cloud` sells add-ons; anything else answers with an empty list. |
Απάντηση
| Όνομα | Τύpος | Υποχρεωτικό | Τι είναι |
|---|---|---|---|
data | ComputeAddOnOffer[] | Ναι | — |
Σφάλματα που μπορεί να επιστρέψει αυτό το τελικό σημείο
401 · 403 · 429