Preview a deploy
Says what deploying an app would do, without deploying it: every change, what blocks the deploy, what needs your say-so and what data it would leave behind. Where the new version migrates data, Luna also tries the migration on copies of a sample of real lunas.
/_luna/preflightAuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
deploy:writeapplication/jsontenantstringrequiredThe tenant to deploy to, by its full name.
entriesstring[]requiredThe entry modules, relative to the app's root. At most one for each language. One path as a string works too, and so does the name entry.
manifestsobjectThe manifest of each entry module, by its path, as the SDK's build reports it.
filesobjectThe files of a small app: each path, relative and separated by /, with its contents as UTF-8 text.
treeobjectThe files of an app that were uploaded before this request, each path with its hash and size.
What the deploy would do.
changesstring[]requiredEvery change, one line each.
blockedstring[]requiredWhy this cannot be deployed. Empty when it can.
confirmstring[]requiredWhat needs your say-so before it is deployed.
deletesstring[]requiredData that deploying leaves behind or deletes.
dryRunDryRun[]requiredA trial of the new version's migration on copies of a sample of each changed luna type's lunas.
Show propertiesHide properties
DryRuntypestringrequiredThe luna type.
reportDryRunReportrequiredHow a migration's trial went.
Show propertiesHide properties
sampledinteger<int64>requiredHow many lunas the migration was tried on.
failuresLunaFailure[]requiredThe lunas it failed on.
Show propertiesHide properties
LunaFailurekeyobjectrequiredThe luna's key.
errorstringrequiredWhat went wrong.
pendingMessagesinteger<int64>requiredMessages that wait for a handler the new version removes or changes.
pendingSchedulesinteger<int64>requiredSchedules that wait for a handler the new version removes or changes.
changedHandlersobjectrequiredThe handlers the new version removes or changes, by luna type.
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.