compute
GET /v1/compute/servers/{serverId}/plan
What this machine costs, and what else it could have.
Autenticação
Envie uma chave de API como um token de portador. A chave deve ter a permissão sites.view; uma chave sem ela é recusada com 403, e não 404.
Este endpoint não requer um ID de organização. Sua chave já identifica a organização à qual pertence, e a resposta é delimitada a ela.
Experimente
Substitua qualquer item entre colchetes por seus próprios valores e o espaço reservado para a chave por uma chave do seu painel.
curl -X GET https://api.zinndigital.com/v1/compute/servers/{serverId}/plan \
-H "Authorization: Bearer zdk_live_…"Conectado? O console da API no seu painel preenche o ID da sua organização real e a sua própria chave, e executa a requisição contra a API de produção para que você possa ver a resposta real. Abra este endpoint no console da API
Detalhes
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`.
Parâmetros
| Nome | Tipo | Obrigatório | O que é |
|---|---|---|---|
serverId (path) | Uuid | Sim | 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. |
Resposta
| Nome | Tipo | Obrigatório | O que é |
|---|---|---|---|
data | ComputeServerPlan | Sim | What a machine costs today, what else it could carry, and what may change. |
Erros que este endpoint pode retornar
401 · 403 · 404 · 429