hosting

GET /v1/sites/{siteId}/hosting/usage

Get a site's current-period hosting usage.

Dukkan hosting wuraren ƙarshe

Tabbatar da Asali

Aika maɓallin API azaman alamar ɗauka (bearer token). Dole ne maɓallin ya kasance yana da izinin sites.view; idan babu shi, za a ƙi amfani da maɓallin tare da lambar 403, ba 404 ba.

Wannan wurin ƙarewa ba ya buƙatar ID na ƙungiya. Maɓallin ku ya riga ya gano ƙungiyar da yake ciki, kuma an iyakance amsa a kanta.

Gwada

May gurbin komai da ke cikin kusurwa da ƙimar ka, kuma may gurbin maballi da maballi daga allon sarrafa ka.

curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/hosting/usage \
  -H "Authorization: Bearer zdk_live_…"

An shiga? Na'urar sarrafa API da ke cikin sashin kulawarka tana cika ainihin lambar ƙungiyarka da maɓallinka naka, sannan tana gudanar da buƙatar a kan ainihin API don haka zaka iya ganin amsar gaske. Buɗe wannan tashar a cikin na'urar kula da API

Bayani

Disk and **outbound** bandwidth for the site's package this period, read from the vendor — the same figures the metering basis uses (docs/62 §3.4). Inbound bytes are deliberately not reported: billing a customer for what was sent *to* their site would charge them for other people's traffic, including an attack. `periods` carries the daily/monthly/yearly series where the vendor publishes it, and is empty otherwise rather than fabricated. `404` for a site with no vendor package. Requires `sites.view`.

Sigogi

SunaNau'iAna buƙataAbin da yake
siteId (path)UuidEhSite ID (UUIDv7).

Martani

SunaNau'iAna buƙataAbin da yake
disk_used_mbintegerEhDisk used this period, in MB.
bandwidth_mbintegerEhOutbound bandwidth this period, in MB. Inbound is never billed or shown.
requestsintegerEhHits this period, as the vendor counts them.
periodsobjectEhDaily / monthly / yearly hit and byte totals where the vendor publishes them; empty otherwise, never fabricated.

Kuskuren da wannan matsaya za ta iya maido wa

401 · 403 · 404 · 429 · 503