API referenceSections

Imports from cPanel and DirectAdmin account backups

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

GET /api/v1/tenants/{tid}/linux-imports

Imports from cPanel and DirectAdmin account backups (ADR 0185); needs server.manage

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired

Responses

200 Imports

Content type: application/json

object
  • items array<LinuxImport> required
    • id string required
    • state string required
      Allowed values: "waiting" "requested" "fetching" "scanning" "inventory" "creating" "copying" "copied" "final_sync" "cutover" "done" "failed" "cancelled"
    • error_code string required
    • failed_in string required
    • source string required
      Allowed values: "upload" "url" "api"
    • subject string required
    • api object optional
      • kind string required
      • url string required
      • account string required
      • fingerprint string required
      • file string required
    • account LinuxAccount | null required
      • panel string required
        Allowed values: "cpanel" "directadmin"
      • user string required
      • main_domain string required
      • ip string required
      • domains array<object> required
        • name string required
        • kind string required
          Allowed values: "main" "addon" "sub" "parked"
        • doc_root string required
        • parent string optional
        • php string optional
        • aliases array<string> required
        • files integer required
        • bytes integer (int64) required
        • nested array<string> optional
      • databases array<object> required
        • name string required
        • dump string required
        • size integer (int64) required
      • db_users array<object> required
        • name string required
        • hash_kind string required
          Allowed values: "native" "other" "none"
        • hosts array<string> required
        • grants array<object> required
          • database string required
          • privileges array<string> required
      • mail array<object> required
        • domain string required
        • catch_all string optional
        • boxes array<object> required
          • local string required
          • quota_mb integer required
          • maildir string required
          • messages integer required
          • bytes integer (int64) required
          • folders array<string> required
        • forwarders array<object> required
          • local string required
          • targets array<string> required
        • autoresponders array<object> required
          • local string required
          • subject string required
          • body string required
          • start string optional
          • end string optional
      • zones array<object> required
        • name string required
        • records array<DNSRecord> required
          • name string required

            Relative to the zone; @ for the zone itself

          • type string required
            Allowed values: "A" "AAAA" "CNAME" "MX" "TXT" "SRV" "CAA"
          • value string required
          • ttl integer required
          • priority integer optional
          • weight integer optional
          • port integer optional
          • proxied boolean optional

            Cloudflare's proxy; A, AAAA and CNAME in Cloudflare zones only (ADR 0035)

        • skipped array<string> required
      • certs array<object> required
        • domain string required
        • names array<string> required
        • not_after string (date-time) required
        • issuer string required
        • usable boolean required
        • problem string optional
      • cron array<object> required
        • schedule string required
        • command string required
        • kind string required
          Allowed values: "php" "url" "manual"
        • domain string optional
        • path string optional
        • args array<string> optional
        • url string optional
        • reason string optional
      • ftp array<object> required
        • user string required
        • domain string required
        • home string required
      • htaccess array<object> required
        • domain string required
        • path string required
        • rules integer required
        • converted integer required
        • has_web_config boolean required
        • issues array<object> required
          • line integer required
          • text string required
          • reason string required
      • exceptions array<LinuxException> required
        • code string required
        • severity string required
          Allowed values: "info" "warning" "manual"
        • item string required
        • detail string optional
        • count integer optional
      • files integer required
      • bytes integer (int64) required
      • created string (date-time) required
    • target_tenant_id string required
    • target_server_id string required
    • items array<object> required
      • kind string required
      • from string required
      • to string required
      • done boolean required
      • detail string optional
    • rounds array<object> required
      • n integer required
      • archive string required
      • size integer (int64) required
      • created string (date-time) required
      • done string (date-time) | null required
      • delta object | null required
        • files map<string, object> required
          • added integer required
          • changed integer required
          • removed integer required
        • databases array<string> required
        • messages map<string, integer> required
    • dns array<DNSHandover> required
      • domain string optional
      • zone string optional
      • changed integer required
      • error string optional
      • manual array<object> required
        • name string required
        • type string required
        • value string required
        • ttl integer required
    • warnings array<string> required
    • progress string required
    • actions array<string> required
    • passwords_kept boolean required
    • created_at string (date-time) required
    • updated_at string (date-time) required
Example
{
  "items": [
    {
      "id": "string",
      "state": "waiting",
      "error_code": "string",
      "failed_in": "string",
      "source": "upload",
      "subject": "string",
      "api": {
        "kind": "string",
        "url": "string",
        "account": "string",
        "fingerprint": "string",
        "file": "string"
      },
      "account": {
        "panel": "cpanel",
        "user": "string",
        "main_domain": "string",
        "ip": "string",
        "domains": [
          {
            "name": null,
            "kind": "main",
            "doc_root": null,
            "parent": null,
            "php": null,
            "aliases": null,
            "files": null,
            "bytes": null,
            "nested": null
          }
        ],
        "databases": [
          {
            "name": null,
            "dump": null,
            "size": null
          }
        ],
        "db_users": [
          {
            "name": null,
            "hash_kind": "native",
            "hosts": null,
            "grants": null
          }
        ],
        "mail": [
          {
            "domain": null,
            "catch_all": null,
            "boxes": null,
            "forwarders": null,
            "autoresponders": null
          }
        ],
        "zones": [
          {
            "name": null,
            "records": null,
            "skipped": null
          }
        ],
        "certs": [
          {
            "domain": null,
            "names": null,
            "not_after": null,
            "issuer": null,
            "usable": null,
            "problem": null
          }
        ],
        "cron": [
          {
            "schedule": null,
            "command": null,
            "kind": "php",
            "domain": null,
            "path": null,
            "args": null,
            "url": null,
            "reason": null
          }
        ],
        "ftp": [
          {
            "user": null,
            "domain": null,
            "home": null
          }
        ],
        "htaccess": [
          {
            "domain": null,
            "path": null,
            "rules": null,
            "converted": null,
            "has_web_config": null,
            "issues": null
          }
        ],
        "exceptions": [
          {
            "code": null,
            "severity": "info",
            "item": null,
            "detail": null,
            "count": null
          }
        ],
        "files": 0,
        "bytes": 0,
        "created": "2026-01-01T00:00:00Z"
      },
      "target_tenant_id": "string",
      "target_server_id": "string",
      "items": [
        {
          "kind": "string",
          "from": "string",
          "to": "string",
          "done": true,
          "detail": "string"
        }
      ],
      "rounds": [
        {
          "n": 0,
          "archive": "string",
          "size": 0,
          "created": "2026-01-01T00:00:00Z",
          "done": "2026-01-01T00:00:00Z",
          "delta": {
            "files": {
              "key": null
            },
            "databases": [],
            "messages": {
              "key": null
            }
          }
        }
      ],
      "dns": [
        {
          "domain": "string",
          "zone": "string",
          "changed": 0,
          "error": "string",
          "manual": [
            {
              "name": null,
              "type": null,
              "value": null,
              "ttl": null
            }
          ]
        }
      ],
      "warnings": [
        "string"
      ],
      "progress": "string",
      "actions": [
        "string"
      ],
      "passwords_kept": true,
      "created_at": "2026-01-01T00:00:00Z",
      "updated_at": "2026-01-01T00:00:00Z"
    }
  ]
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required