API referenceSections

Migrations and imports

25 operations. Open one for its parameters, request body, responses and examples.

MethodPathSummary
PUT/api/v1/import/{iid}/archiveThe old server's packed, encrypted backup of what the plan names
POST/api/v1/import/{iid}/inventoryThe old server's inventory; authenticated by the import token (ADR 0042)
GET/api/v1/import/{iid}/planThe plan for the old server, with the target account's backup key; 204 until the targets exist
GET/api/v1/tenants/{tid}/importsImports from old servers; needs server.manage
POST/api/v1/tenants/{tid}/importsStart an import; the token is shown once
GET/api/v1/tenants/{tid}/imports/{iid}An import with the old server's inventory and, once done, the new credentials
POST/api/v1/tenants/{tid}/imports/{iid}/passwordsShow the new databases' and mailboxes' passwords of a finished import, once; the panel forgets them in the same step (ADR 0042). IMPORT_PASSWORDS_SHOWN when already shown
POST/api/v1/tenants/{tid}/imports/{iid}/plan 202Choose what to move and to which account and server; the panel makes the targets
GET/api/v1/tenants/{tid}/linux-importsImports from cPanel and DirectAdmin account backups (ADR 0185); needs server.manage
POST/api/v1/tenants/{tid}/linux-importsStart an import from an uploaded backup, an https link, or the source panel's API (cPanel UAPI token, WHM token, DirectAdmin login key; certificate pinned, token sealed). LINUX_IMPORT_SOURCE, LINUX_IMPORT_API, LINUX_IMPORT_API_AUTH, LINUX_IMPORT_API_CERTIFICATE, LINUX_IMPORT_PRIVATE_ADDRESS
POST/api/v1/tenants/{tid}/linux-imports/probeShow the source panel's certificate before anything is trusted or sent
GET/api/v1/tenants/{tid}/linux-imports/{lid}One import, with the inventory and every exception
POST/api/v1/tenants/{tid}/linux-imports/{lid}/actions/{action} 202final (fetch a newer backup from the link or API for the final delta), cutover (point DNS, turn the tasks on), retry (the failed step) or cancel
PUT/api/v1/tenants/{tid}/linux-imports/{lid}/archive 202Upload the account backup (cpmove-USER.tar.gz, backup-DATE_USER.tar.gz, user.OWNER.USER.tar.gz or .tar.zst), the first or a newer one for the final delta; at most 200 GiB. LINUX_IMPORT_TOO_LARGE
POST/api/v1/tenants/{tid}/linux-imports/{lid}/dry-runWhat the plan would do, the names already taken, the software the server lacks and the exceptions; changes nothing
POST/api/v1/tenants/{tid}/linux-imports/{lid}/passwordsThe new mailbox, database user and FTP passwords, once. LINUX_IMPORT_PASSWORDS_SHOWN when already shown
POST/api/v1/tenants/{tid}/linux-imports/{lid}/plan 202Choose what to move; the panel makes the targets and copies. LINUX_IMPORT_PLAN_INVALID, LINUX_IMPORT_PLAN_EMPTY, LINUX_IMPORT_CONFLICTS
GET/api/v1/tenants/{tid}/migrations/pleskMigrations from Plesk servers; needs server.manage
POST/api/v1/tenants/{tid}/migrations/pleskSign in to Plesk with the confirmed fingerprints and read its inventory. The key or password is sealed and never returned. MIGRATE_PLESK_AUTH, MIGRATE_PLESK_CERTIFICATE, MIGRATE_PLESK_UNREACHABLE
POST/api/v1/tenants/{tid}/migrations/plesk/probeShow a Plesk server's panel and FTP certificates before anything is trusted or sent (ADR 0096); needs server.manage
GET/api/v1/tenants/{tid}/migrations/plesk/{mid}One migration; secrets only as "set" flags
POST/api/v1/tenants/{tid}/migrations/plesk/{mid}/actions/{action} 202final_sync (copy only what changed, once Plesk is read-only), retry (the failed step) or cancel
POST/api/v1/tenants/{tid}/migrations/plesk/{mid}/passwordsThe new databases' and mailboxes' passwords, once. MIGRATE_PASSWORDS_SHOWN when already shown
POST/api/v1/tenants/{tid}/migrations/plesk/{mid}/plan 202Choose subscriptions, with the FTP password and database logins Plesk does not give back; the panel makes the targets and copies. MIGRATE_PLAN_INVALID, MIGRATE_MSSQL_NOT_ALLOWED
POST/api/v1/tenants/{tid}/migrations/plesk/{mid}/refreshRead Plesk's inventory again, before a plan is made