compute
GET /v1/compute/servers/{serverId}/backups/tier
The machine's backup tier, and what upgrading would cost.
אימות
שלחו מפתח API כאסימון נושא (bearer token). על המפתח לכלול את הרשאה sites.view; מפתח שאינו כולל אותה יידחה בסטטוס 403, ולא 404.
נקודת קצה זו אינה דורשת מזהה ארגון. המפתח שלך כבר מזהה את הארגון שאליו הוא שייך, והתגובה מוגבלת אליו בלבד.
נסה זאת
החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.
curl -X GET https://api.zinndigital.com/v1/compute/servers/{serverId}/backups/tier \
-H "Authorization: Bearer zdk_live_…"מחובר? קונסולת ה-API בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-API הפיזי כך שתוכל לראות את התגובה בפועל. פתח נקודת קצה זו במסוף ה-API
פרטים
A **pure read** — it charges nothing. `amount_minor` is our price for moving this machine to extended backups, derived from the provider's own live quote for **this** machine rather than from a published percentage: the two disagree, and the provider's figure is the one we are charged. ⛔ `upgrade_available: false` with a `reason` when the machine is already on the extended tier, is still building, or is on a range that has no tier concept — the VPS range buys backups as a separate contract instead, from `getComputeServerPlan`. Requires `sites.view`.
פרמטרים
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
serverId (path) | Uuid | כן | The server's id, as `listComputeServers` reports it. **Ours** (UUIDv7), minted when the order row was written — never the provider's own identifier for the machine. |
תשובה
| שם | סוג | נדרש | מה זה |
|---|---|---|---|
data | ComputeBackupTier | כן | A machine's backup tier and the price of moving it. ⛔ `tier` is the provider's own word, verbatim (`normal` / `upgraded`), because rounding it to a boolean loses the difference… |
שגיאות שנקודה קצה זו עשויה להחזיר
401 · 403 · 404 · 429