compute
GET /v1/compute/eligibility
Whether this organisation may buy a machine on our own cloud.
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ázev | Typ | Požadováno | Co to je |
|---|---|---|---|
org_id (query) | Uuid | Ne | — |
Odpověď
| Název | Typ | Požadováno | Co to je |
|---|---|---|---|
state | string<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_order | boolean | Ano | True only in `verified`. Read this rather than re-deriving it from `state`. |
legal_name | string | Ano | The legal name of whoever is responsible for the machines. |
country | string | Ano | ISO-3166-1 alpha-2 country of the person or the incorporation. |
company_number | string | Ano | Company registration number, or `""` for an individual — a real answer. |
abuse_contact_email | string | Ano | A 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_use | string | Ano | What the customer says the machines are for, in their own words. |
rejection_reason | string | Ano | Shown to the customer **verbatim** when `state` is `rejected`. |
submitted_at | string | Ano | — |
reviewed_at | string | Ano | — |
Chyby, které může tento koncový bod vrátit
401 · 403 · 422 · 429