hosting
GET /v1/sites/{siteId}/quota/resources
What this site is allowed per resource, what it is using, and what more costs.
Πισtoποίηση
Στείλτε ένα κλειδί API ως διακριτικό φορέα (bearer token). Το κλειδί πρέπει να διαθέτει το δικαίωμα sites.view· ένα κλειδί που δεν το διαθέτει απορρίπτεται με 403, όχι 404.
Αυτό το τελικό σημείο δεν δέχεται αναγνωριστικό οργανισμού. Το κλειδί σας προσδιορίζει ήδη τον οργανισμό στον οποίο ανήκει, και η απάντηση περιορίζεται σε αυτόν.
Δοκιμάστε το
Ατικatastήstε ό,τι βρίskεtai μέσα σe γώniaδeς μe τis δikές sas timές, kai to placeholder klεidioύ μe éna klεidi apó ton pinaka ελέgchou sas.
curl -X GET https://api.zinndigital.com/v1/sites/{siteId}/quota/resources \
-H "Authorization: Bearer zdk_live_…"Συνδεθήκατε; Η κονσόλα API στον πίνακα ελέγχου σας συμπληρώνει το πραγματικό αναγνωριστικό του οργανισμού σας και το δικό σας κλειδί, και εκτελεί το αίτημα στο ζωντανό API, ώστε να μπορείτε να δείτε την πραγματική απόκριση. Ανοίξτε αυτό το τελικό σημείο στην κονσόλα API
Λεπτομέρειες
The lifecycle view, where GET /v1/sites/{siteId}/quota is the live read of what the box is enforcing right now. Owner ruling 2026-08-16: a plan grants site slots; disk, inodes, bandwidth and database size (W43-78) are per-site resources with an admin-set default and a paid per-site upgrade. Each entry decomposes the allowance into base (the site's own copied default), granted (live grants — staff gestures and purchased upgrades) and total, because a card showing only the total cannot explain why the number changed when a grant expired. reverts_at is when the ceiling next drops because a temporary grant ends, so a customer learns before it happens rather than after. measured_at is surfaced deliberately: a bar drawn from a two-day-old reading looks identical to one drawn from a fresh reading, and null means nothing has ever measured this site. price_minor is null when no price is published in the caller's currency, and the client must then offer no upgrade control rather than one that cannot complete. Only resources this site's driver can actually enforce are listed. On a managed shared package the disk ceiling belongs to the package type and an inode limit does not exist at any level, so the list is empty there — the control is absent rather than inert. Requires sites.view.
Παράμετροι
| Όνομα | Τύpος | Υποχρεωτικό | Τι είναι |
|---|---|---|---|
siteId (path) | Uuid | Ναι | Site ID (UUIDv7). |
Απάντηση
| Όνομα | Τύpος | Υποχρεωτικό | Τι είναι |
|---|---|---|---|
frozen | boolean | Ναι | Whether the platform has restricted this site for being over a quota. It is deliberately not "is this site restricted": that rung is shared with the malware and abuse ladders,… |
resources | SiteQuotaResource[] | Ναι | Only resources this site's driver can actually enforce. Empty on a managed hosting package, where the disk ceiling belongs to the package type and inodes do not exist. |
Σφάλματα που μπορεί να επιστρέψει αυτό το τελικό σημείο
401 · 403 · 404 · 429