compute
GET /v1/compute/eligibility
Whether this organisation may buy a machine on our own cloud.
Autenticação
Envie uma chave de API como um token de portador. A chave deve ter a permissão sites.view; uma chave sem ela é recusada com 403, e não 404.
Onde vai o ID da sua organização
Este endpoint aceita org_id como parâmetro de consulta. Omita-o e a chamada abrangerá toda a sua subárvore de locatários; envie-o para restringir a chamada a uma única organização.
O ID da sua organização está na tela de chaves de API no seu painel, ao lado da própria chave. É o mesmo ID em todas as chamadas que você fizer.
Experimente
Substitua qualquer item entre colchetes por seus próprios valores e o espaço reservado para a chave por uma chave do seu painel.
curl -X GET https://api.zinndigital.com/v1/compute/eligibility \
-H "Authorization: Bearer zdk_live_…"Conectado? O console da API no seu painel preenche o ID da sua organização real e a sua própria chave, e executa a requisição contra a API de produção para que você possa ver a resposta real. Abra este endpoint no console da API
Detalhes
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`.
Parâmetros
| Nome | Tipo | Obrigatório | O que é |
|---|---|---|---|
org_id (query) | Uuid | Não | — |
Resposta
| Nome | Tipo | Obrigatório | O que é |
|---|---|---|---|
state | string<not_requested, pending, verified, rejected> | Sim | ⛔ 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 | Sim | True only in `verified`. Read this rather than re-deriving it from `state`. |
legal_name | string | Sim | The legal name of whoever is responsible for the machines. |
country | string | Sim | ISO-3166-1 alpha-2 country of the person or the incorporation. |
company_number | string | Sim | Company registration number, or `""` for an individual — a real answer. |
abuse_contact_email | string | Sim | 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 | Sim | What the customer says the machines are for, in their own words. |
rejection_reason | string | Sim | Shown to the customer **verbatim** when `state` is `rejected`. |
submitted_at | string | Sim | — |
reviewed_at | string | Sim | — |
Erros que este endpoint pode retornar
401 · 403 · 422 · 429