API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console

GET /v1/hosting-plans

GET/v1/hosting-plans

List hosting plans

Modèle de données

Cette opération porte sur l'entité hosting_plan (hosting_plan). Les 16 champs (type, validation, caractère obligatoire, relations) figurent dans la référence du schéma.

  • Champs obligatoires : name, diskQuotaGb, bandwidthQuotaGbMonth, maxEmailAccounts, maxDatabases, maxFtpUsers, maxSubdomains, phpVersions, defaultPhpVersion, phpMode, features, monthlyPriceCents
  • Gérés par le serveur : _id, schema, schemaVersion, tenantId, version, createdAt, updatedAt, createdBy, updatedBy, deletedAt, deletedBy. La plateforme attribue ces champs ; ils sont ignorés dans la requête.

Exemple

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();

Codes de réponse

HTTP Signification
200 Default Response

Recherche