Get burst
/v1/burstWhat your account runs against its plan's running count, what it may start now for nothing, and what a start of each size would cost in burst fees.
- import { Agental } from "agental-sdk";
- const agental = new Agental();
- const burst = await agental.burst();
- {
- "enforced": boolean,
- "plan": string | null,
- "limitsFrom": "plan" | "hand" | "none",
- "limitsPlan": string,
- "runningUnits": integer,
- "freeBurstUnits": integer,
- "runningMb": integer,
- "capMb": integer,
- "freeMb": integer,
- … 13 more
- }
Where the caller's account stands: how many sandboxes it runs and may run at once, what its burst meter reads against its free burst, what it has spent on burst fees this month against its budget, and what a start of each size would cost now.
Query
size"tiny" | "small" | "medium" | "large" | A size to quote a start of. |
countinteger | How many of it. 1 when left out. |
Headers
AuthorizationrequiredBearer key | An API key that may make this call. |
Returns
200 Where the caller's account stands: how many sandboxes it runs and may run at once, what its burst meter reads against its free burst, what it has spent on burst fees this month against its budget, and what a start of each size would cost now.
enforcedMore
False: what it starts is only measured.planlimitsFromlimitsPlanrunningUnitsMore
A medium counts 2, a large 4, a tiny half.freeBurstUnitsrunningMbcapMbfreeMbmeterMbfreeNowMboverMbMore
While it is, every start costs a fee.halfLifeMinutesfeeMicrosPerGibmayStartMore
A plan out of credit may not: GET /v1/billing says why.unpaidspentMicrosbudgetMicrosMore
A start that would go past it is refused with 429 burst_budget_reached.budgetSetMore
False: it is defaultBudgetMicros.defaultBudgetMicrosnextStartsizecountfeeMicrosMore
0 where the account is not held to a plan.freeInSecondsoverRunningCountquoteErrors and other answers
| 400 | invalid_request. The key belongs to no account. |
| 404 | The account behind the key is gone. |
Every error answers { "error": { "code", "message" } }; a key without the action a call needs answers 403 key_action_forbidden, naming it.