compute

GET /v1/compute/vps/quote

What one configured VPS costs, itemised.

כל נקודות הקצה מסוג compute

אימות

שלחו מפתח API כאסימון נושא (bearer token). על המפתח לכלול את הרשאה sites.view; מפתח שאינו כולל אותה יידחה בסטטוס 403, ולא 404.

נקודת קצה זו אינה דורשת מזהה ארגון. המפתח שלך כבר מזהה את הארגון שאליו הוא שייך, והתגובה מוגבלת אליו בלבד.

נסה זאת

החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.

curl -X GET https://api.zinndigital.com/v1/compute/vps/quote?size=<size> \
  -H "Authorization: Bearer zdk_live_…"

מחובר? קונסולת ה-API בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-API הפיזי כך שתוכל לראות את התגובה בפועל. פתח נקודת קצה זו במסוף ה-API

פרטים

A **pure read** - it opens no transport, writes nothing and charges nothing. The order screen calls it on every change so the customer sees the real total before committing, rather than a machine price that grows at checkout once the options are applied. ⛔ The machine's own figure comes from its **plan**, never from the add-on catalogue. Two sources for one price is how a configurator and a checkout come to disagree. Requires `sites.view`.

פרמטרים

שםסוגנדרשמה זה
size (query)stringכןThe vendor's machine token (`vps-a` … `vps-i`).
interval (query)string<monthly, yearly>לא
image (query)stringלאThe operating-system token. Only Windows carries a price.
cpanel (query)stringלאA cPanel licence (`cpaneladmin`, `cpanelpro`, `cpanelplus`, `cpanelpremier`).
backup (query)booleanלא
disk_gb (query)integerלאAn additional disk in GB. 50-250 in tens, 250-1000 in fifties, 1000-2000 in hundreds.

תשובה

שםסוגנדרשמה זה
dataComputeVpsQuoteכןOne configured VPS, itemised. Every figure is integer minor units of `currency`; `total_minor` is the sum and is the number to show the customer.

שגיאות שנקודה קצה זו עשויה להחזיר

401 · 403 · 422 · 429