compute
GET /v1/compute/eligibility
Whether this organisation may buy a machine on our own cloud.
Аутентификация
Отправьте ключ 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 | Нет | — |
Ответ
| Имя | Тип | Обязательно | Что это |
|---|---|---|---|
state | string<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_order | boolean | Да | True only in `verified`. Read this rather than re-deriving it from `state`. |
legal_name | string | Да | The legal name of whoever is responsible for the machines. |
country | string | Да | ISO-3166-1 alpha-2 country of the person or the incorporation. |
company_number | string | Да | Company registration number, or `""` for an individual — a real answer. |
abuse_contact_email | string | Да | 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 | Да | What the customer says the machines are for, in their own words. |
rejection_reason | string | Да | Shown to the customer **verbatim** when `state` is `rejected`. |
submitted_at | string | Да | — |
reviewed_at | string | Да | — |
Ошибки, которые может возвращать этот эндпоинт
401 · 403 · 422 · 429