Migrations and imports
25 operations. Open one for its parameters, request body, responses and examples.
| Method | Path | Summary |
|---|---|---|
| PUT | /api/v1/import/{iid}/archive | The old server's packed, encrypted backup of what the plan names |
| POST | /api/v1/import/{iid}/inventory | The old server's inventory; authenticated by the import token (ADR 0042) |
| GET | /api/v1/import/{iid}/plan | The plan for the old server, with the target account's backup key; 204 until the targets exist |
| GET | /api/v1/tenants/{tid}/imports | Imports from old servers; needs server.manage |
| POST | /api/v1/tenants/{tid}/imports | Start 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}/passwords | Show 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 202 | Choose what to move and to which account and server; the panel makes the targets |
| GET | /api/v1/tenants/{tid}/linux-imports | Imports from cPanel and DirectAdmin account backups (ADR 0185); needs server.manage |
| POST | /api/v1/tenants/{tid}/linux-imports | Start 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/probe | Show 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} 202 | final (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 202 | Upload 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-run | What 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}/passwords | The new mailbox, database user and FTP passwords, once. LINUX_IMPORT_PASSWORDS_SHOWN when already shown |
| POST | /api/v1/tenants/{tid}/linux-imports/{lid}/plan 202 | Choose 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/plesk | Migrations from Plesk servers; needs server.manage |
| POST | /api/v1/tenants/{tid}/migrations/plesk | Sign 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/probe | Show 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} 202 | final_sync (copy only what changed, once Plesk is read-only), retry (the failed step) or cancel |
| POST | /api/v1/tenants/{tid}/migrations/plesk/{mid}/passwords | The new databases' and mailboxes' passwords, once. MIGRATE_PASSWORDS_SHOWN when already shown |
| POST | /api/v1/tenants/{tid}/migrations/plesk/{mid}/plan 202 | Choose 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}/refresh | Read Plesk's inventory again, before a plan is made |