compute

GET /v1/compute/servers/{serverId}/plan

What this machine costs, and what else it could have.

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

احراز هویت

یک کلید API را به عنوان یک توکن حامل ارسال کنید. این کلید باید دارای مجوز sites.view باشد؛ کلیدی که فاقد آن باشد با خطای 403 رد می‌شود، نه 404.

این نقطه پایانی هیچ شناسه سازمانی را دریافت نمی‌کند. کلید شما در حال حاضر سازمان مربوطه را مشخص می‌کند و پاسخ در همان محدوده ارائه می‌شود.

امتحان کنید

هر چیزی را که داخل براکت‌های زاویه‌دار قرار دارد با مقادیر خودتان جایگزین کنید، و نگهدارنده کلید را با کلیدی از داشبورد خود جایگزین نمایید.

curl -X GET https://api.zinndigital.com/v1/compute/servers/{serverId}/plan \
  -H "Authorization: Bearer zdk_live_…"

وارد شده‌اید؟ کنسول API در داشبورد شما شناسه سازمان واقعی و کلید خودتان را پر می‌کند و درخواست را روی API زنده اجرا می‌کند تا بتوانید پاسخ واقعی را ببینید. این نقطه پایانی را در کنسول API باز کنید

جزئیات

Everything the "change what I am paying for" card renders: the paid options already on the machine, the ones it could still take, and whether its size can change at all. ⛔⛔ **Read `resizable` and `addons_removable` before rendering any control.** They are different answers on the two ranges and both are vendor facts, not preferences. A cloud server resizes in place and its extended-backup tier can be cancelled; a VPS can do neither - this platform publishes no operation that changes a VPS's processor or memory, and no way to remove one of its add-ons. `resize_reason` and `addons_removal_reason` carry the sentence to show instead of the control. 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.

پاسخ

نامنوعالزامیچیست
dataComputeServerPlanبلهWhat a machine costs today, what else it could carry, and what may change.

خطاهایی که این نقطه پایانی می‌تواند برگرداند

401 · 403 · 404 · 429