compute

GET /v1/compute/servers/{serverId}/backups/tier

The machine's backup tier, and what upgrading would cost.

همه نقاط پایانی compute

همهٔ مستندات توسعه‌دهندگان

احراز هویت

یک کلید API را به عنوان یک توکن حامل ارسال کنید. این کلید باید دارای مجوز 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.

پاسخ

نامنوعالزامیچیست
dataComputeBackupTierبله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