hosting
GET /v1/sites/{siteId}/resource-usage
Get the vendor's own counts of what a package is using.
Πισ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}/resource-usage \
-H "Authorization: Bearer zdk_live_…"Συνδεθήκατε; Η κονσόλα API στον πίνακα ελέγχου σας συμπληρώνει το πραγματικό αναγνωριστικό του οργανισμού σας και το δικό σας κλειδί, και εκτελεί το αίτημα στο ζωντανό API, ώστε να μπορείτε να δείτε την πραγματική απόκριση. Ανοίξτε αυτό το τελικό σημείο στην κονσόλα API
Λεπτομέρειες
How many cron jobs, FTP accounts, databases, database users, aliases and SSH keys the package currently holds, counted by the vendor rather than by us. This is the honest denominator behind every *"3 of 5"* caption on the hosting tab: a count we derived from our own list would disagree with the package the moment anything was created outside this platform. ⛔ A count the vendor sent in a form we could not read is **named in `unreadable`** and reported as `0`, never silently folded into the number. A caption built on a zero that means "we could not tell" is worse than no caption. Requires `sites.view` — the same class of fact as the disk and bandwidth figures beside it. `404` for a site with no managed hosting package.
Παράμετροι
| Όνομα | Τύpος | Υποχρεωτικό | Τι είναι |
|---|---|---|---|
siteId (path) | Uuid | Ναι | Site ID (UUIDv7). |
Απάντηση
| Όνομα | Τύpος | Υποχρεωτικό | Τι είναι |
|---|---|---|---|
cron_jobs | integer | Ναι | Scheduled tasks on the package. |
ftp_accounts | integer | Ναι | FTP accounts on the package, including its primary one. |
mysql_databases | integer | Ναι | MySQL databases on the package. |
mysql_users | integer | Ναι | MySQL users on the package. |
server_aliases | integer | Ναι | Domain aliases pointed at the package. |
ssh_public_keys | integer | Ναι | SSH public keys installed on the package. |
unreadable | string[] | Ναι | ⛔ Counts the vendor sent in a form we could not read. They are **named here and reported as 0** above, never silently folded into the number — a caption built on a zero that mea… |
Σφάλματα που μπορεί να επιστρέψει αυτό το τελικό σημείο
401 · 403 · 404 · 429 · 503