API referenceSections

The site's deploy settings

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

GET /api/v1/tenants/{tid}/sites/{id}/deploy/settings

The site's deploy settings (ADR 0170, 0173, 0174)

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

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired

Responses

200 Settings

Content type: application/json

How a site's application is deployed (ADR 0170, 0173, 0174)

  • strategy string required
    Allowed values: "restart" "blue_green" "files"
  • health_path string required
  • drain_seconds integer required
  • require_approval boolean required
  • build object required
    • cpu_percent integer required
    • memory_mb integer required
    • minutes integer required
  • migration object required
    • enabled boolean required
    • kind string required

      django, alembic, prisma, knex, ef_bundle, artisan or custom

    • command array<string> required

      custom only: the runtime (node, python, dotnet) or an .exe of the release, then plain arguments

    • databases array<string> required
    • on_failure string required
      Allowed values: "restore" "keep"
    • timeout_minutes integer required
    • acknowledged_one_way boolean required

      Must be true to turn the gate on: going back in code does not go back in data

  • standby_port integer required read-only
  • live_release string required read-only
  • live_epoch integer (int64) required read-only
  • strategies array<string> required read-only
  • migration_kinds array<string> required read-only
Example
{
  "strategy": "restart",
  "health_path": "string",
  "drain_seconds": 0,
  "require_approval": true,
  "build": {
    "cpu_percent": 0,
    "memory_mb": 0,
    "minutes": 0
  },
  "migration": {
    "enabled": true,
    "kind": "string",
    "command": [
      "string"
    ],
    "databases": [
      "string"
    ],
    "on_failure": "restore",
    "timeout_minutes": 0,
    "acknowledged_one_way": true
  },
  "standby_port": 0,
  "live_release": "string",
  "live_epoch": 0,
  "strategies": [
    "string"
  ],
  "migration_kinds": [
    "string"
  ]
}

default Error

Content type: application/json

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