API · v1 · stabiel
CODEMETA OSDeveloper Center
NL
Console openen

GET /v1/hosting-plans

GET/v1/hosting-plans

List hosting plans

Datamodel

Deze operatie werkt op de entiteit hosting_plan (hosting_plan). Alle 16 velden — type, validatie, verplichte velden, relaties — staan in de schemareferentie.

  • Verplichte velden: name, diskQuotaGb, bandwidthQuotaGbMonth, maxEmailAccounts, maxDatabases, maxFtpUsers, maxSubdomains, phpVersions, defaultPhpVersion, phpMode, features, monthlyPriceCents
  • Door de server beheerd: _id, schema, schemaVersion, tenantId, version, createdAt, updatedAt, createdBy, updatedBy, deletedAt, deletedBy — deze velden worden door het platform toegekend; in de request worden ze genegeerd.

Voorbeeld

curl -X GET https://api.codemeta-os.de/v1/hosting-plans \
  -H "X-Tenant-Id: $TENANT" \
  -b cookies.txt
const result = await cm.hosting-plans.list();

Antwoordcodes

HTTP Betekenis
200 Default Response

Zoeken