compute

GET /v1/compute/vps/quote

What one configured VPS costs, itemised.

すべての compute エンドポイント

認証

ベアラー トークンとして API キーを送信します。キーには sites.view 権限が付与されている必要があります。権限のないキーは 404 ではなく 403 で拒否されます。

このエンドポイントは組織IDを受け付けません。お使いのキーによって所属する組織がすでに特定されており、レスポンスはその組織にスコープされます。

試してみる

アングルブラケット内のすべてをご自身の値に置き換え、キーのプレースホルダーをご利用中のダッシュボードのキーに置き換えてください。

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

ログインしていますか?ダッシュボード内のAPIコンソールでは、実際の組織IDやお客様ご自身のキーが自動入力され、ライブ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