compute
GET /v1/compute/add-ons
What can be bought to run ON a Zinn® Private Cloud machine.
توثيقِ شناخت
ایک بیرر ٹوکن کے طور پر ایک API کی بھیجیں۔ کی کے پاس sites.view اجازت ہونی چاہیے؛ اس کے بغیر کی کو 404 کے بجائے 403 کے ساتھ مسترد کر دیا جاتا ہے۔
یہ اینڈ پوائنٹ کوئی آرگنائزیشن آئی ڈی نہیں لیتا۔ آپ کی کلید پہلے ہی اس آرگنائزیشن کی شناخت کرتی ہے جس سے یہ تعلق رکھتی ہے، اور اس کا جواب اسی کے مطابق محدود ہوتا ہے۔
آزمائیں
کوئی بھی چیز جو زاویہ دار قوسین میں ہو اسے اپنی اقدار سے بدلیں، اور کلیدی پلیس ہولڈر کو اپنے ڈیش بورڈ کی کسی کلید سے بدلیں۔
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`.
پیرامیٹرز
| نام | قسم | لازمی | یہ کیا ہے |
|---|---|---|---|
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. |
جواب
| نام | قسم | لازمی | یہ کیا ہے |
|---|---|---|---|
data | ComputeAddOnOffer[] | ہاں | — |
وہ خرابیان جو یہ اینڈ پوائنٹ واپس کر سکتا ہے
401 · 403 · 429