hosting

GET /v1/sites/{siteId}/resource-usage

Get the vendor's own counts of what a package is using.

Alle hosting Endpunkte

Authentifizierung

Senden Sie einen API-Schlüssel als Bearer-Token. Der Schlüssel muss über die Berechtigung sites.view verfügen; ein Schlüssel ohne diese wird mit 403 statt 404 abgelehnt.

Dieser Endpunkt erfordert keine Organisations-ID. Ihr Schlüssel identifiziert bereits die zugehörige Organisation, und die Antwort ist entsprechend eingeschränkt.

Ausprobieren

Ersetzen Sie alles in spitzen Klammern durch Ihre eigenen Werte und den Platzhalter für den Schlüssel durch einen Schlüssel aus Ihrem Dashboard.

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

Angemeldet? Die API-Konsole in Ihrem Dashboard trägt automatisch Ihre echte Organisations-ID sowie Ihren eigenen Schlüssel ein und führt die Anfrage gegen die Live-API aus, sodass Sie die tatsächliche Antwort sehen können. Öffnen Sie diesen Endpunkt in der API-Konsole

Details

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.

Parameter

NameTypErforderlichWas es ist
siteId (path)UuidJaSite ID (UUIDv7).

Antwort

NameTypErforderlichWas es ist
cron_jobsintegerJaScheduled tasks on the package.
ftp_accountsintegerJaFTP accounts on the package, including its primary one.
mysql_databasesintegerJaMySQL databases on the package.
mysql_usersintegerJaMySQL users on the package.
server_aliasesintegerJaDomain aliases pointed at the package.
ssh_public_keysintegerJaSSH public keys installed on the package.
unreadablestring[]Ja⛔ 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…

Fehler, die dieser Endpunkt zurückgeben kann

401 · 403 · 404 · 429 · 503