compute
GET /v1/compute/eligibility
Whether this organisation may buy a machine on our own cloud.
Uthibitishaji
Tuma ufunguo wa API kama tokeni ya kubeba. Ufunguo lazima uwe na ruhusa ya sites.view; ufunguo usio nayo unakataliwa kwa 403, si 404.
Mahali ambapo kitambulisho cha shirika lako huwekwa
Kigezo hiki kinachukua org_id kama kigezo cha utafutaji. Iache wazi na simu itashughulikia tawi lako lote la wapangaji; itume ili kupunguza simu iwe ya shirika moja tu.
Kitambulisho cha shirika lako kipo kwenye skrini ya funguo za API katika dashibodi yako, kando ya ufunguo wenyewe. Ni kitambulisho kile kile katika kila ombi unalofanya.
Jaribu
Badilisha chochote kilicho ndani ya mabano ya pembe na maadili yako mwenyewe, na kishikiliaji cha ufunguo na ufunguo kutoka kwa dashibodi yako.
curl -X GET https://api.zinndigital.com/v1/compute/eligibility \
-H "Authorization: Bearer zdk_live_…"Umeingia kwenye akaunti? Dashibodi yako ya kiweko cha API inajaza kitambulisho chako halisi cha shirika na ufunguo wako mwenyewe, na kuendesha ombi dhidi ya API ya moja kwa moja ili uweze kuona jibu halisi. Fungua sehemu hii ya mwisho (endpoint) kwenye konsole ya API
Maelezo
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`.
Vigezo
| Jina | Aina | Inayohitajika | Kilicho hiki |
|---|---|---|---|
org_id (query) | Uuid | Hapana | — |
Majibu
| Jina | Aina | Inayohitajika | Kilicho hiki |
|---|---|---|---|
state | string<not_requested, pending, verified, rejected> | Ndiyo | ⛔ 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 | Ndiyo | True only in `verified`. Read this rather than re-deriving it from `state`. |
legal_name | string | Ndiyo | The legal name of whoever is responsible for the machines. |
country | string | Ndiyo | ISO-3166-1 alpha-2 country of the person or the incorporation. |
company_number | string | Ndiyo | Company registration number, or `""` for an individual — a real answer. |
abuse_contact_email | string | Ndiyo | 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 | Ndiyo | What the customer says the machines are for, in their own words. |
rejection_reason | string | Ndiyo | Shown to the customer **verbatim** when `state` is `rejected`. |
submitted_at | string | Ndiyo | — |
reviewed_at | string | Ndiyo | — |
Hitilafu ambazo mwisho huu unaweza kurudisha
401 · 403 · 422 · 429