API referenceSections

Choose the SQL Server instance the server's databases go to, the panel's SQLEXPRESS or a licensed instance the provider installed; the broker checks it (running, SYSTEM sysadmin) and reports its edition and TCP port; refused while SQL Server databases remain in the current instance; provider only; audited

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

PUT /api/v1/tenants/{tid}/servers/{id}/sqlserver

Choose the SQL Server instance the server's databases go to, the panel's SQLEXPRESS or a licensed instance the provider installed; the broker checks it (running, SYSTEM sysadmin) and reports its edition and TCP port; refused while SQL Server databases remain in the current instance; provider only; audited (ADR 0206)

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

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
idpathstringrequired
X-CSRF-Tokenheaderstringoptional

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

Request body

required

Content type: application/json

object
  • no other properties
  • instance string optional

    MSSQLSERVER for the default instance, a named instance, or empty or SQLEXPRESS for the panel's own

Example
{
  "instance": "string"
}

Responses

200 The instance as the server saw it

Content type: application/json

  • instance string required
  • provider boolean required

    The provider's own instance; its server settings are left to the provider

  • running boolean required
  • edition string optional

    SERVERPROPERTY('Edition'), e.g. Standard Edition (64-bit)

  • version string optional
  • port integer optional

    TCP port; 0 or absent when TCP is off

  • sysadmin boolean required

    The broker (SYSTEM) is a sysadmin of the instance

  • error string optional
  • fix string optional

    The command that makes SYSTEM a sysadmin, when it is not

Example
{
  "instance": "string",
  "provider": true,
  "running": true,
  "edition": "string",
  "version": "string",
  "port": 0,
  "sysadmin": true,
  "error": "string",
  "fix": "string"
}

default Error

Content type: application/json

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