compute

GET /v1/compute/servers/{serverId}/usage

One server's metered hours, charges and ledger check for a month.

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

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

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

Ուղարկեք API բանալին որպես bearer թոքեն։ Այս վերջնակետը բնութագրում չի նշում որոշակի թույլտվության մասին, ուստի տվեք ձեր բանալուն նվազագույն անհրաժեշտը և ենթադրություններ անելու փոխարեն ստուգեք պատասխանը:

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

Փորձել

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

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

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

Պարամետրեր

ԱնունՏեսակՊահանջվում էԻնչ է դա
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.
period (query)stringՈչThe month, YYYY-MM (UTC). Defaults to the current month.

Պատասխան

ԱնունՏեսակՊահանջվում էԻնչ է դա
periodstringԱյո
hoursintegerԱյոStarted hours rated in the month.
rated_minorintegerԱյոWhole minor units rated. A sub-unit remainder is carried, never rounded up.
settled_minorintegerԱյոNet of tax
unsettled_minorintegerԱյոRated and not yet paid.
currencystringԱյո
settlementsComputeUsageSettlement[]Այո
reconcilesbooleanԱյոWhether hours, settlements, their orders and the balance draws all agree. It is computed from four independently written records, never a figure against itself.
discrepanciesstring[]ԱյոEvery disagreement found, in words. Empty when reconciles is true.

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

401 · 403 · 404 · 422 · 429