compute

GET /v1/compute/eligibility

Whether this organisation may buy a machine on our own cloud.

Tous les points de terminaison compute

Authentification

Envoyez une clé API en tant que jeton du porteur. La clé doit posséder l'autorisation sites.view ; une clé qui ne l'a pas est refusée avec le code 403, et non 404.

Où insérer l'ID de votre organisation

Cet point de terminaison prend org_id comme paramètre de requête. Omettez-le et l'appel couvrira l'ensemble de votre sous-arbre de location ; envoyez-le pour restreindre l'appel à une seule organisation.

L'identifiant de votre organisation se trouve sur l'écran des clés API de votre tableau de bord, à côté de la clé elle-même. Il s'agit du même identifiant pour chaque appel que vous effectuez.

Essayer

Remplacez tout ce qui se trouve entre crochets par vos propres valeurs, et le espace réservé à la clé par une clé de votre tableau de bord.

curl -X GET https://api.zinndigital.com/v1/compute/eligibility \
  -H "Authorization: Bearer zdk_live_…"

Connecté ? La console d'API de votre tableau de bord saisit votre véritable ID d'organisation ainsi que votre propre clé, et exécute la requête sur l'API de production afin que vous puissiez voir la réponse réelle. Ouvrir ce point de terminaison dans la console API

Détails

Machines on **our own** infrastructure need a one-off verification before the first order. We are the account holder of record for that range, so a complaint about what a customer runs arrives at us — and there is no per-customer isolation at the provider, which means one abusive machine can suspend the whole account. ⛔ Four states, not a boolean. `not_requested` and `rejected` both refuse an order and the customer's next action is completely different: one is "tell us who you are" and the other is "we have decided, and here is why". Requires `sites.view`.

Paramètres

NomTypeObligatoireQu'est-ce que c'est
org_id (query)UuidNon

Réponse

NomTypeObligatoireQu'est-ce que c'est
statestring<not_requested, pending, verified, rejected>Oui⛔ Four states, not a boolean. `not_requested` and `rejected` both refuse an order and the customer's next action differs completely: one is "tell us who you are", the other is "…
may_orderbooleanOuiTrue only in `verified`. Read this rather than re-deriving it from `state`.
legal_namestringOuiThe legal name of whoever is responsible for the machines.
countrystringOuiISO-3166-1 alpha-2 country of the person or the incorporation.
company_numberstringOuiCompany registration number, or `""` for an individual — a real answer.
abuse_contact_emailstringOuiA monitored address an abuse report can be forwarded to and answered from. We are the account holder of record, so a complaint reaches us first and has to reach the customer wit…
intended_usestringOuiWhat the customer says the machines are for, in their own words.
rejection_reasonstringOuiShown to the customer **verbatim** when `state` is `rejected`.
submitted_atstringOui
reviewed_atstringOui

Erreurs que cet point de terminaison peut renvoyer

401 · 403 · 422 · 429