LinuxImport
LinuxImport objectidstring requiredstatestring requiredAllowed values:"waiting""requested""fetching""scanning""inventory""creating""copying""copied""final_sync""cutover""done""failed""cancelled"error_codestring requiredfailed_instring requiredsourcestring requiredAllowed values:"upload""url""api"subjectstring requiredapiobject optionalkindstring requiredurlstring requiredaccountstring requiredfingerprintstring requiredfilestring required
panelstring requiredAllowed values:"cpanel""directadmin"userstring requiredmain_domainstring requiredipstring requireddomainsarray<object> requirednamestring requiredkindstring requiredAllowed values:"main""addon""sub""parked"doc_rootstring requiredparentstring optionalphpstring optionalaliasesarray<string> requiredfilesinteger requiredbytesinteger (int64) requirednestedarray<string> optional
databasesarray<object> requirednamestring requireddumpstring requiredsizeinteger (int64) required
db_usersarray<object> requirednamestring requiredhash_kindstring requiredAllowed values:"native""other""none"hostsarray<string> requiredgrantsarray<object> requireddatabasestring requiredprivilegesarray<string> required
mailarray<object> requireddomainstring requiredcatch_allstring optionalboxesarray<object> requiredlocalstring requiredquota_mbinteger requiredmaildirstring requiredmessagesinteger requiredbytesinteger (int64) requiredfoldersarray<string> required
forwardersarray<object> requiredlocalstring requiredtargetsarray<string> required
autorespondersarray<object> requiredlocalstring requiredsubjectstring requiredbodystring requiredstartstring optionalendstring optional
zonesarray<object> requirednamestring requiredskippedarray<string> required
certsarray<object> requireddomainstring requirednamesarray<string> requirednot_afterstring (date-time) requiredissuerstring requiredusableboolean requiredproblemstring optional
cronarray<object> requiredschedulestring requiredcommandstring requiredkindstring requiredAllowed values:"php""url""manual"domainstring optionalpathstring optionalargsarray<string> optionalurlstring optionalreasonstring optional
ftparray<object> requireduserstring requireddomainstring requiredhomestring required
htaccessarray<object> requireddomainstring requiredpathstring requiredrulesinteger requiredconvertedinteger requiredhas_web_configboolean requiredissuesarray<object> requiredlineinteger requiredtextstring requiredreasonstring required
filesinteger requiredbytesinteger (int64) requiredcreatedstring (date-time) required
target_tenant_idstring requiredtarget_server_idstring requireditemsarray<object> requiredkindstring requiredfromstring requiredtostring requireddoneboolean requireddetailstring optional
roundsarray<object> requiredninteger requiredarchivestring requiredsizeinteger (int64) requiredcreatedstring (date-time) requireddonestring (date-time) | null requireddeltaobject | null requiredfilesmap<string, object> requiredaddedinteger requiredchangedinteger requiredremovedinteger required
databasesarray<string> requiredmessagesmap<string, integer> required
warningsarray<string> requiredprogressstring requiredactionsarray<string> requiredpasswords_keptboolean requiredcreated_atstring (date-time) requiredupdated_atstring (date-time) required
Used by
| 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 |
| GET | /api/v1/tenants/{tid}/linux-imports/{lid} | One import, with the inventory and every exception |
| 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}/plan 202 | Choose what to move; the panel makes the targets and copies. LINUX_IMPORT_PLAN_INVALID, LINUX_IMPORT_PLAN_EMPTY, LINUX_IMPORT_CONFLICTS |
| 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 |