Replace a tenant's settings
Replaces a tenant’s settings with the ones you send: its quotas, custom hostnames, grants, outbound handler, retention, telemetry export and tags. A setting you leave out goes back to its default. The tenant’s keys and its public hostname stay as they are.
/_luna/tenants/{tenant}AuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
tenants:writetenantstringrequiredThe tenant, by its full name.
application/jsonquotasTenantQuotasThe most a tenant can use. A limit that is null or left out is not set here, so the plan's limit holds.
Show propertiesHide properties
requestsPerSecondnumber<double> | nullThe most requests a second.
cpuPercentinteger<int32> | nullThe most CPU the tenant's microVM can use, as a percent of one core.
storageBytesinteger<int64> | nullThe most storage, in bytes.
sandboxesinteger<int32> | nullThe most sandboxes running at once.
lunaMemoryMibinteger<int64> | nullThe most memory one luna can declare or use, in MiB.
lunaCpunumber<double> | nullThe most cores one luna can declare or use.
lunaDefaultMemoryMibinteger<int64> | nullThe memory a luna has when it declares none, in MiB.
lunaDefaultCpunumber<double> | nullThe cores a luna has when it declares none.
tenantMemoryMibinteger<int64> | nullThe most memory the tenant's microVM can grow to, in MiB.
lunaReserveboolean | nullWhether the tenant's lunas can reserve their limits. The plan decides when left out.
hostnamesstring[]Custom routes to the tenant, each as host or host/first-path-segment.
grantsobjectThe platform luna types the tenant's code can call, each under the service name the code uses.
outboundOutboundHandler | nullShow propertiesHide properties
lunastringrequiredThe platform's luna type.
keyobjectrequiredThe key of the luna to call.
handlerstringrequiredThe handler to call.
nullretentionDaysinteger<int32> | nullHow many days the tenant's logs and traces are kept. The deployment's setting holds when left out.
historyDaysinteger<int32> | nullHow many days back the tenant's lunas can be restored or forked. At most what its plan keeps, which is the default. A change takes effect when its workers next start.
otlpOtlpConfig | nullShow propertiesHide properties
endpointstringrequiredThe base URL of an OTLP collector. Luna adds /v1/logs and the other OTLP paths to it.
headersobjectHeaders sent with every request, usually an API key. A response shows each value as ***.
nulllabelsobjectYour own tags, for finding and grouping tenants. Left out of a response when there are none.
hostLabelstring | nullThe label of the tenant's public hostname, <label>.<app domain>. Luna sets it once. A request cannot change it.
The settings are saved.
okbooleanrequiredAlways true.
The 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.