compute

GET /v1/compute/eligibility

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

Lahat ng compute endpoint

Pagpapatotoo

Magpadala ng API key bilang isang bearer token. Kailangang taglayin ng key ang pahintulot na sites.view; ang key na wala nito ay tatanggihan gamit ang 403, hindi 404.

Kung saan mapupunta ang id ng iyong organisasyon

Tinatanggap ng endpoint na ito ang org_id bilang parameter ng query. Huwag itong isama at saklaw ng tawag ang buong subtree ng iyong tenancy; ipadala ito para paliitin ang tawag sa isang organisasyon.

Ang id ng iyong organisasyon ay nasa screen ng mga API key sa iyong dashboard, sa tabi mismo ng key. Ito ang parehong id sa bawat tawag na gagawin mo.

Subukan ito

Palitan ang anuman sa loob ng mga panaklong na may anggulo ng iyong sariling mga halaga, at ang placeholder ng key na may key mula sa iyong dashboard.

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

Nakalagda? Ang API console sa iyong dashboard ay awtomatikong naglalagay ng iyong tunay na ID ng organisasyon at sariling susi, at pinapatakbo ang kahilingan laban sa live na API upang makita mo ang aktwal na tugon. Buksan ang endpoint na ito sa console ng API

Mga Detalye

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

Mga Parameter

PangalanUriKailanganAno ito
org_id (query)UuidHindi

Tugon

PangalanUriKailanganAno ito
statestring<not_requested, pending, verified, rejected>Oo⛔ 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_orderbooleanOoTrue only in `verified`. Read this rather than re-deriving it from `state`.
legal_namestringOoThe legal name of whoever is responsible for the machines.
countrystringOoISO-3166-1 alpha-2 country of the person or the incorporation.
company_numberstringOoCompany registration number, or `""` for an individual — a real answer.
abuse_contact_emailstringOoA 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_usestringOoWhat the customer says the machines are for, in their own words.
rejection_reasonstringOoShown to the customer **verbatim** when `state` is `rejected`.
submitted_atstringOo
reviewed_atstringOo

Mga error na maibabalik ng endpoint na ito

401 · 403 · 422 · 429