compute

GET /v1/compute/vps/quote

What one configured VPS costs, itemised.

Todos los endpoints de compute

Autenticación

Envía una clave de API como token de portador. La clave debe tener el permiso sites.view; una clave que no lo tenga se rechazará con un código 403, no 404.

Este endpoint no requiere ningún id de organización. Su clave ya identifica la organización a la que pertenece, y la respuesta está delimitada a ella.

Pruébalo

Reemplaza cualquier elemento entre corchetes angulares por tus propios valores, y el marcador de posición key con una clave de tu panel de control.

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

¿Has iniciado sesión? La consola de la API en tu panel de control rellena el ID de tu organización real y tu propia clave, y ejecuta la solicitud contra la API en vivo para que puedas ver la respuesta real. Abre este endpoint en la consola de la API

Detalles

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`.

Parámetros

NombreTipoObligatorio¿Qué es esto?
size (query)stringThe vendor's machine token (`vps-a` … `vps-i`).
interval (query)string<monthly, yearly>No
image (query)stringNoThe operating-system token. Only Windows carries a price.
cpanel (query)stringNoA cPanel licence (`cpaneladmin`, `cpanelpro`, `cpanelplus`, `cpanelpremier`).
backup (query)booleanNo
disk_gb (query)integerNoAn additional disk in GB. 50-250 in tens, 250-1000 in fifties, 1000-2000 in hundreds.

Respuesta

NombreTipoObligatorio¿Qué es esto?
dataComputeVpsQuoteOne configured VPS, itemised. Every figure is integer minor units of `currency`; `total_minor` is the sum and is the number to show the customer.

Errores que este endpoint puede devolver

401 · 403 · 422 · 429