Get what is in use now
Returns what an organisation is using right now against what its plan allows. It is the inUse part of the billing summary on its own, which is cheap enough to ask for every few seconds.
/_luna/orgs/{org}/billing/in-useAuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
billing:readorgstringrequiredThe organisation, by its slug.
What is in use now.
coresnumber<double>requiredThe cores its lunas used over the last half minute or so, with the sizes of the lunas that reserve and of its running sandboxes.
memoryMibinteger<int64>requiredThe memory in use, counted the same way, in MiB.
activeLunasinteger<int64>requiredThe lunas awake now.
sandboxesinteger<int64>requiredThe sandboxes running now.
limitsInUseLimitsrequiredWhat the plan allows of each. Null means no limit.
Show propertiesHide properties
coresnumber<double> | nullmemoryMibnumber<double> | nullactiveLunasinteger<int64> | nullsandboxesinteger<int64> | nullThe request failed. The status says how and error.message says why.
errorErrorDetailrequiredShow propertiesHide properties
codestring | nullA code for programs to branch on, when the error has one.
messagestringrequiredWhat went wrong, in a sentence a person can read.