compute

GET /v1/compute/eligibility

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

Բոլոր compute վերջնակետերը

Նույնականացում

Ուղարկեք API բանալին որպես bearer token: Բանալին պետք է ունենա sites.view թույլտվությունը. առանց դրա բանալին մերժվում է 403, և ոչ թե 404 կարգավիճակով:

Որտեղ տեղադրվում է ձեր կազմակերպության ID-ն

Այs վերջնակետը ընդունում է org_id-ը որպես հարցման պարամետր: Բաց թողեք այն, և կանչը կընդգրկի ձեր ամբողջ վարձակալության ենթածառը. ուղարկեք այն՝ կանչը մեկ կազմակերպության վրա սահմանափակելու համար:

Ձեր կազմակերպության ID-ն գտնվում է Ձեր ղեկավարման վահանակի API բանալիների էկրանին՝ բուն բանալու կողքին: Այն նույն ID-ն է Ձեր կատարած յուրաքանչյուր հարցման մեջ:

Փորձել

Փոխարինեք անկյունային փակագծերում գտնվող ցանկացած բան ձեր սեփական արժեքներով, և բանալու տեղապահը՝ ձեր վահանակի բանալիով:

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

Մուտք գործե՞լ եք: Ձեր վահանակի API վահանակը լրացնում է ձեր իրական կազմակերպության ID-ն և ձեր սեփական բանալին և գործարկում է հարցումը ուղիղ API-ի դեմ, որպեսզի կարողանաք տեսնել փաստացի պատասխանը: Բացեք այս վերջնակետը API վահանակում

Մանրամասներ

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

Պարամետրեր

ԱնունՏեսակՊահանջվում էԻնչ է դա
org_id (query)UuidՈչ

Պատասխան

ԱնունՏեսակՊահանջվում էԻնչ է դա
statestring<not_requested, pending, verified, rejected>Այո⛔ 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_orderbooleanԱյոTrue only in `verified`. Read this rather than re-deriving it from `state`.
legal_namestringԱյոThe legal name of whoever is responsible for the machines.
countrystringԱյոISO-3166-1 alpha-2 country of the person or the incorporation.
company_numberstringԱյոCompany registration number, or `""` for an individual — a real answer.
abuse_contact_emailstringԱյո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_usestringԱյոWhat the customer says the machines are for, in their own words.
rejection_reasonstringԱյոShown to the customer **verbatim** when `state` is `rejected`.
submitted_atstringԱյո
reviewed_atstringԱյո

Այս վերջնակետի կողմից վերադարձվող սխալները

401 · 403 · 422 · 429