API referenceSections

What the plan would do, the names already taken, the software the server lacks and the exceptions; changes nothing

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

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

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

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
lidpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

  • tenant_id string required
  • server_id string required
  • sites array<object> required
    • domain string required
    • hostname string optional
  • databases array<object> optional
    • name string required
    • target string optional
  • mail boolean optional
  • dns boolean optional
  • certificates boolean optional
  • cron boolean optional
  • ftp boolean optional
Example
{
  "tenant_id": "string",
  "server_id": "string",
  "sites": [
    {
      "domain": "string",
      "hostname": "string"
    }
  ],
  "databases": [
    {
      "name": "string",
      "target": "string"
    }
  ],
  "mail": true,
  "dns": true,
  "certificates": true,
  "cron": true,
  "ftp": true
}

Responses

200 The dry run

Content type: application/json

  • actions array<object> required
    • kind string required
    • name string required
    • detail string optional
  • conflicts array<object> required
    • kind string required
    • name string required
    • code 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
Example
{
  "actions": [
    {
      "kind": "string",
      "name": "string",
      "detail": "string"
    }
  ],
  "conflicts": [
    {
      "kind": "string",
      "name": "string",
      "code": "string"
    }
  ],
  "exceptions": [
    {
      "code": "string",
      "severity": "info",
      "item": "string",
      "detail": "string",
      "count": 0
    }
  ]
}

default Error

Content type: application/json

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