compute

GET /v1/compute/servers/{serverId}/backups/tier

The machine's backup tier, and what upgrading would cost.

Բոլոր compute վերջնակետերը

Բոլոր մշակողների փաստաթղթերը

Նույնականացում

Ուղարկեք API բանալին որպես bearer token: Բանալին պետք է ունենա sites.view թույլտվությունը. առանց դրա բանալին մերժվում է 403, և ոչ թե 404 կարգավիճակով:

Այս վերջնակետը կազմակերպության ID չի ընդունում: Ձեր բանալին արդեն իսկ նույնականացնում է այն կազմակերպությունը, որին պատկանում է, և պատասխանը սահմանափակված է դրանով:

Փորձել

Փոխարինեք անկյունային փակագծերում գտնվող ցանկացած բան ձեր սեփական արժեքներով, և բանալու տեղապահը՝ ձեր վահանակի բանալիով:

curl -X GET https://api.zinndigital.com/v1/compute/servers/{serverId}/backups/tier \
  -H "Authorization: Bearer zdk_live_…"

Մուտք գործե՞լ եք: Ձեր վահանակի API վահանակը լրացնում է ձեր իրական կազմակերպության ID-ն և ձեր սեփական բանալին և գործարկում է հարցումը ուղիղ API-ի դեմ, որպեսզի կարողանաք տեսնել փաստացի պատասխանը: Բացեք այս վերջնակետը API վահանակում

Մանրամասներ

A pure read — it charges nothing. amount_minor is our price for moving this machine to extended backups, derived from the provider's own live quote for this machine rather than from a published percentage: the two disagree, and the provider's figure is the one we are charged. ⛔ upgrade_available: false with a reason when the machine is already on the extended tier, is still building, or is on a range that has no tier concept — the VPS range buys backups as a separate contract instead, from getComputeServerPlan. Requires sites.view.

Պարամետրեր

ԱնունՏեսակՊահանջվում էԻնչ է դա
serverId (path)UuidԱյո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.

Պատասխան

ԱնունՏեսակՊահանջվում էԻնչ է դա
dataComputeBackupTierԱյոA machine's backup tier and the price of moving it. ⛔ tier is the provider's own word, verbatim (normal / upgraded), because rounding it to a boolean loses the difference…

Այս վերջնակետի կողմից վերադարձվող սխալները

401 · 403 · 404 · 429