compute

GET /v1/compute/eligibility

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

כל נקודות הקצה מסוג compute

אימות

שלחו מפתח API כאסימון נושא (bearer token). על המפתח לכלול את הרשאה sites.view; מפתח שאינו כולל אותה יידחה בסטטוס 403, ולא 404.

המקום שבו מזהה הארגון שלך נכנס

נקודת קצה זו מקבלת את org_id כפרמטר שאילתת חיפוש. השאר אותו ריק והקריאה תכסה את כל תת-עץ הדיירות שלך; שלח אותו כדי לצמצם את הקריאה לארגון אחד.

מזהה הארגון שלך נמצא במסוף מפתחות ה-API בלוח הבקרה שלך, לצד המפתח עצמו. זהו אותו מזהה בכל קריאה שאתה מבצע.

נסה זאת

החלף כל דבר בסוגריים זוויתיים בערכים משלך, ואת מציין מיקום המפתח במפתח מלוח הבקרה שלך.

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

מחובר? קונסולת ה-API בלוח הבקרה שלך מזינה את מזהה הארגון האמיתי שלך ואת המפתח שלך, ומריצה את הבקשה מול ה-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