compute

GET /v1/compute/eligibility

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

Všechny koncové body compute

Autentizace

Zašlete API klíč jako nosný token (bearer token). Klíč musí mít oprávnění sites.view; klíč bez něj je odmítnut s kódem 403, nikoli 404.

Sem patří ID vaší organizace

Tento koncový bod přijímá org_id jako parametr dotazu. Pokud ho vynecháte, volání pokryje celý podstrom vašeho nájemce; jeho odesláním volání zúžíte na jednu organizaci.

ID vaší organizace najdete na obrazovce API klíčů ve vašem přehledu, hned vedle samotného klíče. Je to stále stejné ID v každém volání, které provedete.

Vyzvednout

Nahraďte cokoli v závorkách vlastními hodnotami a zástupný symbol klíče klíčem z vašeho řídicího panelu.

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

Přihlášeni? Konzole API ve vašem dashboardu automaticky doplní vaše skutečné ID organizace i váš vlastní klíč a odešle požadavek na živé API, abyste viděli reálnou odpověď. Otevřete tento koncový bod v konzoli API

Podrobnosti

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`.

Parametry

NázevTypPožadovánoCo to je
org_id (query)UuidNe

Odpověď

NázevTypPožadovánoCo to je
statestring<not_requested, pending, verified, rejected>Ano⛔ 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_orderbooleanAnoTrue only in `verified`. Read this rather than re-deriving it from `state`.
legal_namestringAnoThe legal name of whoever is responsible for the machines.
countrystringAnoISO-3166-1 alpha-2 country of the person or the incorporation.
company_numberstringAnoCompany registration number, or `""` for an individual — a real answer.
abuse_contact_emailstringAnoA 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_usestringAnoWhat the customer says the machines are for, in their own words.
rejection_reasonstringAnoShown to the customer **verbatim** when `state` is `rejected`.
submitted_atstringAno
reviewed_atstringAno

Chyby, které může tento koncový bod vrátit

401 · 403 · 422 · 429