compute
GET /v1/compute/servers/{serverId}/images
What this machine may be rebuilt to.
Pagpapatotoo
Magpadala ng API key bilang isang bearer token. Kailangang taglayin ng key ang pahintulot na sites.view; ang key na wala nito ay tatanggihan gamit ang 403, hindi 404.
Ang endpoint na ito ay hindi nangangailangan ng id ng organisasyon. Natutukoy na ng iyong key ang organisasyong kinabibilangan nito, at nakatuon ang tugon dito.
Subukan ito
Palitan ang anuman sa loob ng mga panaklong na may anggulo ng iyong sariling mga halaga, at ang placeholder ng key na may key mula sa iyong dashboard.
curl -X GET https://api.zinndigital.com/v1/compute/servers/{serverId}/images \
-H "Authorization: Bearer zdk_live_…"Nakalagda? Ang API console sa iyong dashboard ay awtomatikong naglalagay ng iyong tunay na ID ng organisasyon at sariling susi, at pinapatakbo ang kahilingan laban sa live na API upang makita mo ang aktwal na tugon. Buksan ang endpoint na ito sa console ng API
Mga Detalye
⭐⭐ **Distinct from the catalogue's per-provider image list, and the duplication is the provider's rather than ours.** `GET /v1/compute/catalogue` answers *"what can I build in this data centre"* — a property of the location. This answers *"what may THIS machine become"*, which is not the same question at every provider: some return only the variants inside the machine's current pricing tier and refuse a Linux↔Windows switch, so two identical-looking machines in one zone can differ. ⛔ Falls back to the provider's list where a provider has no per-machine answer, so an empty result means *this machine cannot be rebuilt*, never *we did not ask*. Requires `sites.view`.
Mga Parameter
| Pangalan | Uri | Kailangan | Ano ito |
|---|---|---|---|
serverId (path) | Uuid | Oo | 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. |
Tugon
| Pangalan | Uri | Kailangan | Ano ito |
|---|---|---|---|
data | ComputeImage[] | Oo | — |
Mga error na maibabalik ng endpoint na ito
401 · 403 · 404 · 429