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
/api/v1/tenants/{tid}/servers/{id}/sqlserverChoose 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tid | path | string | required | |
id | path | string | required | |
X-CSRF-Token | header | string | optional | Required on unsafe requests authenticated by session cookie; API keys do not use it. |
Request body
required
Content type: application/json
- no other properties
instancestring optionalMSSQLSERVER 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
instancestring requiredproviderboolean requiredThe provider's own instance; its server settings are left to the provider
runningboolean requirededitionstring optionalSERVERPROPERTY('Edition'), e.g. Standard Edition (64-bit)
versionstring optionalportinteger optionalTCP port; 0 or absent when TCP is off
sysadminboolean requiredThe broker (SYSTEM) is a sysadmin of the instance
errorstring optionalfixstring optionalThe 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
codestring requiredmessagestring requireddetails_redactedboolean requiredcorrelation_idstring requiredretryableboolean required