compute

POST /v1/compute/servers/{serverId}/resize/quote

Get what resizing a server would cost, before the charge.

Minden compute végpont

Az összes fejlesztői dokumentáció

Hitelesítés

Küldjön egy API-kulcsot bearer tokenként. A kulcsnak rendelkeznie kell a(z) sites.view jogosultsággal; az ezzel nem rendelkező kulcsok esetén a rendszer 403-as hibát ad vissza 404 helyett.

Ez a végpont nem fogad el szervezeti azonosítót. Az Ön kulcsa már azonosítja azt a szervezetet, amelyhez tartozik, és a válasz is erre vonatkozik.

Próbálja ki

Cserélje ki a hegyes zárójelek közötti részt a saját értékeivel, a kulcshelyőrzőt pedig a vezérlőpultján található kulccsal.

curl -X POST https://api.zinndigital.com/v1/compute/servers/{serverId}/resize/quote \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

Be van jelentkezve? A vezérlőpultban lévő API-konzol kitölti a valós szervezetazonosítóját és a saját kulcsát, és a kérést az éles API-n futtatja, hogy láthassa a tényleges választ. Nyissa meg ezt a végpontot az API konzolban

Részletek

The provider's own figure for moving this machine to another size. A POST that changes nothing, deliberately: the size being quoted is a body field, and a quote is not a cacheable representation of a resource. ⛔ Showing it is not optional — an upgrade charged at an unstated amount is a refund request (§2.8). ⛔ amount is the provider's own string, unparsed, and it carries no currency field. Inventing one to fit a money type would put a number in front of a customer in the wrong currency, so a client renders it exactly as the provider stated it and labels it as the provider's estimate. 404 for a server that is not the caller's; 422 for a size the provider does not offer or a machine that is not in an operable state. Requires sites.view — reading a price commits to nothing.

Paraméterek

NévTípusKötelezőMi ez
serverId (path)UuidIgenThe 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.

Kérés törzse

NévTípusKötelezőMi ez
specstringNemThe target size, as getComputeCatalogue reported it.
plan_codestringNemThe plan to move to, as getComputeCatalogue's tiers[].plan_code.

Válasz

NévTípusKötelezőMi ez
specstringIgenThe size the figure is for.
plan_codestringIgenThe plan quoted, on an own-account range. "" on the resold range.
price_minorintegerIgen⛔ D24975 (W43-48). OUR price for the plan, in minor units, in the machine's own data centre at its own cadence. On an own-account range this is the only figure; amount and…
currencystringIgenISO currency of price_minor, or "".
intervalstringIgenmonthly or annual — the machine's billing cadence — or "".
amountstringIgenThe provider's figure, verbatim. Rendered as the provider stated it and labelled as the provider's estimate, never reformatted.
detailstringIgenWhatever else the provider said about the change, or "". Blank is common and is not an error.

Hibák, amelyeket ez a végpont visszaadhattatlan

401 · 403 · 404 · 422 · 429 · 503