Copy every luna to another tenant
Copies the lunas of a tenant into another tenant, as they are now or as they were at an earlier moment. A destination with nothing deployed gets the source’s code and settings first. One request copies one page of lunas. Send the cursor it returns to copy the next page, until the cursor is null. Reading the source needs data:read on its tenant, and writing the copies needs data:write on the destination.
/_luna/tenants/{tenant}/fork-allAuthorizationBearer token · headerrequiredAn account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.
data:readdata:writetenantstringrequiredThe tenant to copy from, by its full name.
application/jsontostringrequiredThe tenant to copy into, by its full name.
atinteger<int64> | nullThe moment to copy the lunas as of, in milliseconds since the Unix epoch. Now when left out.
schedulesbooleanWhether each copy keeps the schedules its source has.
cursorobject | nullThe cursor of the last page, to copy the next one.
limitinteger<int32> | nullHow many lunas to copy in this request. 64 when left out, 1000 at most.
What this page copied.
copiedinteger<int32>requiredHow many lunas this page copied.
skippedinteger<int32>requiredHow many lunas this page passed over: those that did not exist yet at that moment, and those an earlier try already copied.
cursorTypeCursor | nullShow propertiesHide properties
typestringrequiredThe luna type the next page starts in.
afterobject | nullWhere the next page starts within that type. Null for its start.
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.