Restore lunas to an earlier moment
Puts lunas back as they were at a moment in the past: one luna, every luna of a type or every luna of the tenant. One request restores one page of lunas. Send the cursor it returns to restore the next page, until the cursor is null.
/_luna/tenants/{tenant}/restoreAuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
data:writetenantstringrequiredThe tenant, by its full name.
application/jsonatinteger<int64> | nullThe moment to restore to, in milliseconds since the Unix epoch. Give this or lsn.
lsninteger<int64> | nullA position in one luna's history to restore to. Needs type and key.
typestring | nullOnly lunas of this type. Every type when left out.
keyobject | nullOnly the luna with this key, such as {"id": "a"}. Needs type.
limitinteger<int32> | nullHow many lunas to restore in this request. 64 when left out, 1000 at most.
cursorobject | nullThe cursor of the last page, to restore the next one.
What this page restored.
restoredinteger<int64>requiredHow many lunas this page restored.
skippedinteger<int64>requiredHow many lunas this page passed over because they did not exist yet at that moment.
failedLunaFailure[]requiredThe lunas that could not be restored. Send the request again for those.
Show propertiesHide properties
LunaFailurekeyobjectrequiredThe luna's key.
errorstringrequiredWhat went wrong.
cursorobject | nullSend this as cursor to restore the next page. Null when the restore is finished.
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.