compute

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

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

Bütün compute nöqtələri

Bütün tərtibatçı sənədləri

Doğrulama

API açarını bearer token kimi göndərin. Bu səhifə spresifikasiyada xüsusi icazə tələb etmir, buna görə də açarınıza ehtiyac duyduğu minimum səviyyədə icazə verin və güman etmək əvəzinə cavabı yoxlayın.

Bu endpoint heç bir təşkilat ID-si tələb etmir. Sizin açarınız artıq aid olduğu təşkilatı müəyyən edir və cavab həmin təşkilat üçün məhdudlaşdırılır.

Sınaqdan keçir

Bucaqlı mötərizələrdə olan hór şeyi öz qiymətlərinizlə, açar yertutucusunu isə idarə panelinizdən bir açarla əvəz edin.

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

Sistemə daxil olmusunuz? İdarə panelinizdəki API konsolu real təşkilatınızın identifikatorunu və öz açarınızı avtomatik doldurur, sorğunu canlı API-yə qarşı icra edir ki, siz faktiki cavabı görə biləsiniz. Bu son nöqtəni API konsolunda açın

Parametrlər

AdTipTələb olunurNədir
serverId (path)UuidBəliThe 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)stringXeyrThe month, YYYY-MM (UTC). Defaults to the current month.

Cavab

AdTipTələb olunurNədir
periodstringBəli
hoursintegerBəliStarted hours rated in the month.
rated_minorintegerBəliWhole minor units rated. A sub-unit remainder is carried, never rounded up.
settled_minorintegerBəliNet of tax
unsettled_minorintegerBəliRated and not yet paid.
currencystringBəli
settlementsComputeUsageSettlement[]Bəli
reconcilesbooleanBəliWhether hours, settlements, their orders and the balance draws all agree. It is computed from four independently written records, never a figure against itself.
discrepanciesstring[]BəliEvery disagreement found, in words. Empty when reconciles is true.

Bu son nöqtənin qaytara biləcəyi xətalar

401 · 403 · 404 · 422 · 429