Microsoft.Sql (preview:2024-11-01)

2025/07/25 • 5 updated methods

Servers_List (updated)
Description Gets a list of all servers in the subscription.
Reference Link ¶

⚶ Changes

{
  "#id": "Servers_List",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "#name": "createMode",
                "Enum": {
                  "new": [
                    [
                      "Normal",
                      ""
                    ],
                    [
                      "Restore",
                      ""
                    ]
                  ],
                  "old": [
                    [
                      "Normal",
                      ""
                    ],
                    [
                      "ServerMigrationV1",
                      ""
                    ],
                    [
                      "DatabaseMigrationV1",
                      ""
                    ],
                    [
                      "ServerMigration",
                      ""
                    ],
                    [
                      "Standby",
                      ""
                    ],
                    [
                      "Restore",
                      ""
                    ]
                  ]
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Sql/servers
{
$expand: string ,
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
identity:
{
userAssignedIdentities: object ,
principalId: string ,
type: enum ,
tenantId: string ,
}
,
kind: string ,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: string ,
state: string ,
fullyQualifiedDomainName: string ,
privateEndpointConnections:
[
{
id: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
groupIds:
[
string ,
]
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: enum ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
minimalTlsVersion: enum ,
publicNetworkAccess: enum ,
workspaceFeature: enum ,
primaryUserAssignedIdentityId: string ,
federatedClientId: string ,
keyId: string ,
administrators:
{
administratorType: enum ,
principalType: enum ,
login: string ,
sid: string ,
tenantId: string ,
azureADOnlyAuthentication: boolean ,
}
,
restrictOutboundNetworkAccess: enum ,
isIPv6Enabled: enum ,
externalGovernanceStatus: enum ,
retentionDays: integer ,
createMode: enum ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Servers_ListByResourceGroup (updated)
Description Gets a list of servers in a resource groups.
Reference Link ¶

⚶ Changes

{
  "#id": "Servers_ListByResourceGroup",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "#name": "createMode",
                "Enum": {
                  "new": [
                    [
                      "Normal",
                      ""
                    ],
                    [
                      "Restore",
                      ""
                    ]
                  ],
                  "old": [
                    [
                      "Normal",
                      ""
                    ],
                    [
                      "ServerMigrationV1",
                      ""
                    ],
                    [
                      "DatabaseMigrationV1",
                      ""
                    ],
                    [
                      "ServerMigration",
                      ""
                    ],
                    [
                      "Standby",
                      ""
                    ],
                    [
                      "Restore",
                      ""
                    ]
                  ]
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers
{
resourceGroupName: string ,
$expand: string ,
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
identity:
{
userAssignedIdentities: object ,
principalId: string ,
type: enum ,
tenantId: string ,
}
,
kind: string ,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: string ,
state: string ,
fullyQualifiedDomainName: string ,
privateEndpointConnections:
[
{
id: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
groupIds:
[
string ,
]
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: enum ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
minimalTlsVersion: enum ,
publicNetworkAccess: enum ,
workspaceFeature: enum ,
primaryUserAssignedIdentityId: string ,
federatedClientId: string ,
keyId: string ,
administrators:
{
administratorType: enum ,
principalType: enum ,
login: string ,
sid: string ,
tenantId: string ,
azureADOnlyAuthentication: boolean ,
}
,
restrictOutboundNetworkAccess: enum ,
isIPv6Enabled: enum ,
externalGovernanceStatus: enum ,
retentionDays: integer ,
createMode: enum ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Servers_Get (updated)
Description Gets a server.
Reference Link ¶

⚶ Changes

{
  "#id": "Servers_Get",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "#name": "createMode",
            "Enum": {
              "new": [
                [
                  "Normal",
                  ""
                ],
                [
                  "Restore",
                  ""
                ]
              ],
              "old": [
                [
                  "Normal",
                  ""
                ],
                [
                  "ServerMigrationV1",
                  ""
                ],
                [
                  "DatabaseMigrationV1",
                  ""
                ],
                [
                  "ServerMigration",
                  ""
                ],
                [
                  "Standby",
                  ""
                ],
                [
                  "Restore",
                  ""
                ]
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}
{
resourceGroupName: string ,
serverName: string ,
$expand: string ,
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
identity:
{
userAssignedIdentities: object ,
principalId: string ,
type: enum ,
tenantId: string ,
}
,
kind: string ,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: string ,
state: string ,
fullyQualifiedDomainName: string ,
privateEndpointConnections:
[
{
id: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
groupIds:
[
string ,
]
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: enum ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
minimalTlsVersion: enum ,
publicNetworkAccess: enum ,
workspaceFeature: enum ,
primaryUserAssignedIdentityId: string ,
federatedClientId: string ,
keyId: string ,
administrators:
{
administratorType: enum ,
principalType: enum ,
login: string ,
sid: string ,
tenantId: string ,
azureADOnlyAuthentication: boolean ,
}
,
restrictOutboundNetworkAccess: enum ,
isIPv6Enabled: enum ,
externalGovernanceStatus: enum ,
retentionDays: integer ,
createMode: enum ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Servers_CreateOrUpdate (updated)
Description Creates or updates a server.
Reference Link ¶

⚶ Changes

{
  "#id": "Servers_CreateOrUpdate",
  "$parameters": {
    "parameters": {
      "$properties": {
        "properties": [
          {
            "#name": "createMode",
            "Enum": {
              "new": [
                [
                  "Normal",
                  ""
                ],
                [
                  "Restore",
                  ""
                ]
              ],
              "old": [
                [
                  "Normal",
                  ""
                ],
                [
                  "ServerMigrationV1",
                  ""
                ],
                [
                  "DatabaseMigrationV1",
                  ""
                ],
                [
                  "ServerMigration",
                  ""
                ],
                [
                  "Standby",
                  ""
                ],
                [
                  "Restore",
                  ""
                ]
              ]
            }
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "#name": "createMode",
            "Enum": {
              "new": [
                [
                  "Normal",
                  ""
                ],
                [
                  "Restore",
                  ""
                ]
              ],
              "old": [
                [
                  "Normal",
                  ""
                ],
                [
                  "ServerMigrationV1",
                  ""
                ],
                [
                  "DatabaseMigrationV1",
                  ""
                ],
                [
                  "ServerMigration",
                  ""
                ],
                [
                  "Standby",
                  ""
                ],
                [
                  "Restore",
                  ""
                ]
              ]
            }
          }
        ]
      }
    },
    "201": {
      "$properties": {
        "properties": [
          {
            "#name": "createMode",
            "Enum": {
              "new": [
                [
                  "Normal",
                  ""
                ],
                [
                  "Restore",
                  ""
                ]
              ],
              "old": [
                [
                  "Normal",
                  ""
                ],
                [
                  "ServerMigrationV1",
                  ""
                ],
                [
                  "DatabaseMigrationV1",
                  ""
                ],
                [
                  "ServerMigration",
                  ""
                ],
                [
                  "Standby",
                  ""
                ],
                [
                  "Restore",
                  ""
                ]
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}
{
resourceGroupName: string ,
serverName: string ,
parameters:
{
identity:
{
userAssignedIdentities: object ,
principalId: string ,
type: enum ,
tenantId: string ,
}
,
kind: string ,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: string ,
state: string ,
fullyQualifiedDomainName: string ,
privateEndpointConnections:
[
{
id: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
groupIds:
[
string ,
]
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: enum ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
minimalTlsVersion: enum ,
publicNetworkAccess: enum ,
workspaceFeature: enum ,
primaryUserAssignedIdentityId: string ,
federatedClientId: string ,
keyId: string ,
administrators:
{
administratorType: enum ,
principalType: enum ,
login: string ,
sid: string ,
tenantId: string ,
azureADOnlyAuthentication: boolean ,
}
,
restrictOutboundNetworkAccess: enum ,
isIPv6Enabled: enum ,
externalGovernanceStatus: enum ,
retentionDays: integer ,
createMode: enum ,
}
,
}
,
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
identity:
{
userAssignedIdentities: object ,
principalId: string ,
type: enum ,
tenantId: string ,
}
,
kind: string ,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: string ,
state: string ,
fullyQualifiedDomainName: string ,
privateEndpointConnections:
[
{
id: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
groupIds:
[
string ,
]
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: enum ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
minimalTlsVersion: enum ,
publicNetworkAccess: enum ,
workspaceFeature: enum ,
primaryUserAssignedIdentityId: string ,
federatedClientId: string ,
keyId: string ,
administrators:
{
administratorType: enum ,
principalType: enum ,
login: string ,
sid: string ,
tenantId: string ,
azureADOnlyAuthentication: boolean ,
}
,
restrictOutboundNetworkAccess: enum ,
isIPv6Enabled: enum ,
externalGovernanceStatus: enum ,
retentionDays: integer ,
createMode: enum ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}

⚐ Response (202)

{
location: string ,
}

⚐ Response (201)

{
identity:
{
userAssignedIdentities: object ,
principalId: string ,
type: enum ,
tenantId: string ,
}
,
kind: string ,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: string ,
state: string ,
fullyQualifiedDomainName: string ,
privateEndpointConnections:
[
{
id: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
groupIds:
[
string ,
]
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: enum ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
minimalTlsVersion: enum ,
publicNetworkAccess: enum ,
workspaceFeature: enum ,
primaryUserAssignedIdentityId: string ,
federatedClientId: string ,
keyId: string ,
administrators:
{
administratorType: enum ,
principalType: enum ,
login: string ,
sid: string ,
tenantId: string ,
azureADOnlyAuthentication: boolean ,
}
,
restrictOutboundNetworkAccess: enum ,
isIPv6Enabled: enum ,
externalGovernanceStatus: enum ,
retentionDays: integer ,
createMode: enum ,
}
,
}
Servers_Update (updated)
Description Updates a server.
Reference Link ¶

⚶ Changes

{
  "#id": "Servers_Update",
  "$parameters": {
    "parameters": {
      "$properties": {
        "properties": [
          {
            "#name": "createMode",
            "Enum": {
              "new": [
                [
                  "Normal",
                  ""
                ],
                [
                  "Restore",
                  ""
                ]
              ],
              "old": [
                [
                  "Normal",
                  ""
                ],
                [
                  "ServerMigrationV1",
                  ""
                ],
                [
                  "DatabaseMigrationV1",
                  ""
                ],
                [
                  "ServerMigration",
                  ""
                ],
                [
                  "Standby",
                  ""
                ],
                [
                  "Restore",
                  ""
                ]
              ]
            }
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "#name": "createMode",
            "Enum": {
              "new": [
                [
                  "Normal",
                  ""
                ],
                [
                  "Restore",
                  ""
                ]
              ],
              "old": [
                [
                  "Normal",
                  ""
                ],
                [
                  "ServerMigrationV1",
                  ""
                ],
                [
                  "DatabaseMigrationV1",
                  ""
                ],
                [
                  "ServerMigration",
                  ""
                ],
                [
                  "Standby",
                  ""
                ],
                [
                  "Restore",
                  ""
                ]
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}
{
resourceGroupName: string ,
serverName: string ,
parameters:
{
identity:
{
userAssignedIdentities: object ,
principalId: string ,
type: enum ,
tenantId: string ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: string ,
state: string ,
fullyQualifiedDomainName: string ,
privateEndpointConnections:
[
{
id: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
groupIds:
[
string ,
]
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: enum ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
minimalTlsVersion: enum ,
publicNetworkAccess: enum ,
workspaceFeature: enum ,
primaryUserAssignedIdentityId: string ,
federatedClientId: string ,
keyId: string ,
administrators:
{
administratorType: enum ,
principalType: enum ,
login: string ,
sid: string ,
tenantId: string ,
azureADOnlyAuthentication: boolean ,
}
,
restrictOutboundNetworkAccess: enum ,
isIPv6Enabled: enum ,
externalGovernanceStatus: enum ,
retentionDays: integer ,
createMode: enum ,
}
,
tags: object ,
}
,
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
identity:
{
userAssignedIdentities: object ,
principalId: string ,
type: enum ,
tenantId: string ,
}
,
kind: string ,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: string ,
state: string ,
fullyQualifiedDomainName: string ,
privateEndpointConnections:
[
{
id: string ,
properties:
{
privateEndpoint:
{
id: string ,
}
,
groupIds:
[
string ,
]
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: enum ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
minimalTlsVersion: enum ,
publicNetworkAccess: enum ,
workspaceFeature: enum ,
primaryUserAssignedIdentityId: string ,
federatedClientId: string ,
keyId: string ,
administrators:
{
administratorType: enum ,
principalType: enum ,
login: string ,
sid: string ,
tenantId: string ,
azureADOnlyAuthentication: boolean ,
}
,
restrictOutboundNetworkAccess: enum ,
isIPv6Enabled: enum ,
externalGovernanceStatus: enum ,
retentionDays: integer ,
createMode: enum ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}

⚐ Response (202)

{
location: string ,
}