compute
PUT /v1/compute/spend-cap
Set or clear the organisation's monthly limit on metered compute.
Doğrulama
API açarını bearer token kimi göndərin. Bu səhifə spresifikasiyada xüsusi icazə tələb etmir, buna görə də açarınıza ehtiyac duyduğu minimum səviyyədə icazə verin və güman etmək əvəzinə cavabı yoxlayın.
Təşkilatınızın identifikatorunun yerləşdiyi yer
Bu son nöqtə JSON gövdəsində sahə kimi org_id qəbul edir.
Təşkilatınızın identifikatoru idarə panelinizdəki API açarları ekranında, açarın özünün yanında yerləşir. Bu, etdiyiniz hər bir sorğuda eyni identifikatordur.
Sınaqdan keçir
Bucaqlı mötərizələrdə olan hór şeyi öz qiymətlərinizlə, açar yertutucusunu isə idarə panelinizdən bir açarla əvəz edin.
curl -X PUT https://api.zinndigital.com/v1/compute/spend-cap \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ "monthly_cap_minor": <object> }'Sistemə daxil olmusunuz? İdarə panelinizdəki API konsolu real təşkilatınızın identifikatorunu və öz açarınızı avtomatik doldurur, sorğunu canlı API-yə qarşı icra edir ki, siz faktiki cavabı görə biləsiniz. Bu son nöqtəni API konsolunda açın
Təfərrüatlar
When this month's metered hours reach the limit, the organisation's pay-by-the-hour machines are stopped within the hour, and started again within the hour of the limit being raised or the month turning. ⛔ A stopped machine still exists and is still rated by the hour; deleting it is what stops the billing.
Sorğu gövdəsi
| Ad | Tip | Tələb olunur | Nədir |
|---|---|---|---|
monthly_cap_minor | object | Bəli | The new limit in minor units of the billing currency, or null to clear it. |
org_id | object | Xeyr | Required only when the caller belongs to more than one organisation. |
Cavab
| Ad | Tip | Tələb olunur | Nədir |
|---|---|---|---|
monthly_cap_minor | object | Bəli | The organisation's monthly limit on metered compute. null = no limit. |
currency | string | Bəli | The organisation's billing currency. |
month_to_date_minor | integer | Bəli | What metered machines have rated so far this month, in currency. |
Bu son nöqtənin qaytara biləcəyi xətalar
401 · 403 · 422 · 429