Microsoft.DBforMySQL (preview:2025-06-01)

2025/11/10 • 8 updated methods

Servers_List (updated)
Description List all the servers in a given subscription.
Reference Link ¶

⚶ Changes

{
  "#id": "Servers_List",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "#name": "version",
                "Enum": {
                  "new": [
                    [
                      "5.7",
                      ""
                    ],
                    [
                      "8.0.21",
                      ""
                    ],
                    [
                      "8.4",
                      ""
                    ]
                  ],
                  "old": [
                    [
                      "5.7",
                      ""
                    ],
                    [
                      "8.0.21",
                      ""
                    ]
                  ]
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/flexibleServers
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
fullVersion: string ,
availabilityZone: string ,
createMode: enum ,
sourceServerResourceId: string ,
restorePointInTime: string ,
replicationRole: enum ,
replicaCapacity: integer ,
dataEncryption:
{
primaryUserAssignedIdentityId: string ,
primaryKeyURI: string ,
geoBackupUserAssignedIdentityId: string ,
geoBackupKeyURI: string ,
type: enum ,
}
,
state: enum ,
fullyQualifiedDomainName: string ,
databasePort: integer ,
storage:
{
storageSizeGB: integer ,
iops: integer ,
autoGrow: enum ,
logOnDisk: enum ,
storageSku: string ,
autoIoScaling: enum ,
storageRedundancy: enum ,
}
,
backup:
{
backupRetentionDays: integer ,
backupIntervalHours: integer ,
geoRedundantBackup: enum ,
earliestRestoreDate: string ,
}
,
highAvailability:
{
mode: enum ,
state: enum ,
standbyAvailabilityZone: string ,
replicationMode: enum ,
}
,
network:
{
publicNetworkAccess: enum ,
delegatedSubnetResourceId: string ,
privateDnsZoneResourceId: string ,
}
,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
maintenancePolicy:
{
patchStrategy: enum ,
}
,
maintenanceWindow:
{
customWindow: string ,
startHour: integer ,
startMinute: integer ,
dayOfWeek: integer ,
batchOfMaintenance: enum ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
lowerCaseTableNames: integer ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Servers_ListByResourceGroup (updated)
Description List all the servers in a given resource group.
Reference Link ¶

⚶ Changes

{
  "#id": "Servers_ListByResourceGroup",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "#name": "version",
                "Enum": {
                  "new": [
                    [
                      "5.7",
                      ""
                    ],
                    [
                      "8.0.21",
                      ""
                    ],
                    [
                      "8.4",
                      ""
                    ]
                  ],
                  "old": [
                    [
                      "5.7",
                      ""
                    ],
                    [
                      "8.0.21",
                      ""
                    ]
                  ]
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
fullVersion: string ,
availabilityZone: string ,
createMode: enum ,
sourceServerResourceId: string ,
restorePointInTime: string ,
replicationRole: enum ,
replicaCapacity: integer ,
dataEncryption:
{
primaryUserAssignedIdentityId: string ,
primaryKeyURI: string ,
geoBackupUserAssignedIdentityId: string ,
geoBackupKeyURI: string ,
type: enum ,
}
,
state: enum ,
fullyQualifiedDomainName: string ,
databasePort: integer ,
storage:
{
storageSizeGB: integer ,
iops: integer ,
autoGrow: enum ,
logOnDisk: enum ,
storageSku: string ,
autoIoScaling: enum ,
storageRedundancy: enum ,
}
,
backup:
{
backupRetentionDays: integer ,
backupIntervalHours: integer ,
geoRedundantBackup: enum ,
earliestRestoreDate: string ,
}
,
highAvailability:
{
mode: enum ,
state: enum ,
standbyAvailabilityZone: string ,
replicationMode: enum ,
}
,
network:
{
publicNetworkAccess: enum ,
delegatedSubnetResourceId: string ,
privateDnsZoneResourceId: string ,
}
,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
maintenancePolicy:
{
patchStrategy: enum ,
}
,
maintenanceWindow:
{
customWindow: string ,
startHour: integer ,
startMinute: integer ,
dayOfWeek: integer ,
batchOfMaintenance: enum ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
lowerCaseTableNames: integer ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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

⚶ Changes

{
  "#id": "Servers_Get",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "#name": "version",
            "Enum": {
              "new": [
                [
                  "5.7",
                  ""
                ],
                [
                  "8.0.21",
                  ""
                ],
                [
                  "8.4",
                  ""
                ]
              ],
              "old": [
                [
                  "5.7",
                  ""
                ],
                [
                  "8.0.21",
                  ""
                ]
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
serverName: string ,
}

⚐ Response (200)

{
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
fullVersion: string ,
availabilityZone: string ,
createMode: enum ,
sourceServerResourceId: string ,
restorePointInTime: string ,
replicationRole: enum ,
replicaCapacity: integer ,
dataEncryption:
{
primaryUserAssignedIdentityId: string ,
primaryKeyURI: string ,
geoBackupUserAssignedIdentityId: string ,
geoBackupKeyURI: string ,
type: enum ,
}
,
state: enum ,
fullyQualifiedDomainName: string ,
databasePort: integer ,
storage:
{
storageSizeGB: integer ,
iops: integer ,
autoGrow: enum ,
logOnDisk: enum ,
storageSku: string ,
autoIoScaling: enum ,
storageRedundancy: enum ,
}
,
backup:
{
backupRetentionDays: integer ,
backupIntervalHours: integer ,
geoRedundantBackup: enum ,
earliestRestoreDate: string ,
}
,
highAvailability:
{
mode: enum ,
state: enum ,
standbyAvailabilityZone: string ,
replicationMode: enum ,
}
,
network:
{
publicNetworkAccess: enum ,
delegatedSubnetResourceId: string ,
privateDnsZoneResourceId: string ,
}
,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
maintenancePolicy:
{
patchStrategy: enum ,
}
,
maintenanceWindow:
{
customWindow: string ,
startHour: integer ,
startMinute: integer ,
dayOfWeek: integer ,
batchOfMaintenance: enum ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
lowerCaseTableNames: integer ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Servers_Create (updated)
Description Creates a new server or updates an existing server. The update action will overwrite the existing server.
Reference Link ¶

⚶ Changes

{
  "#id": "Servers_Create",
  "$parameters": {
    "parameters": {
      "$properties": {
        "properties": [
          {
            "#name": "version",
            "Enum": {
              "new": [
                [
                  "5.7",
                  ""
                ],
                [
                  "8.0.21",
                  ""
                ],
                [
                  "8.4",
                  ""
                ]
              ],
              "old": [
                [
                  "5.7",
                  ""
                ],
                [
                  "8.0.21",
                  ""
                ]
              ]
            }
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "#name": "version",
            "Enum": {
              "new": [
                [
                  "5.7",
                  ""
                ],
                [
                  "8.0.21",
                  ""
                ],
                [
                  "8.4",
                  ""
                ]
              ],
              "old": [
                [
                  "5.7",
                  ""
                ],
                [
                  "8.0.21",
                  ""
                ]
              ]
            }
          }
        ]
      }
    },
    "201": {
      "$properties": {
        "properties": [
          {
            "#name": "version",
            "Enum": {
              "new": [
                [
                  "5.7",
                  ""
                ],
                [
                  "8.0.21",
                  ""
                ],
                [
                  "8.4",
                  ""
                ]
              ],
              "old": [
                [
                  "5.7",
                  ""
                ],
                [
                  "8.0.21",
                  ""
                ]
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
serverName: string ,
parameters:
{
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
fullVersion: string ,
availabilityZone: string ,
createMode: enum ,
sourceServerResourceId: string ,
restorePointInTime: string ,
replicationRole: enum ,
replicaCapacity: integer ,
dataEncryption:
{
primaryUserAssignedIdentityId: string ,
primaryKeyURI: string ,
geoBackupUserAssignedIdentityId: string ,
geoBackupKeyURI: string ,
type: enum ,
}
,
state: enum ,
fullyQualifiedDomainName: string ,
databasePort: integer ,
storage:
{
storageSizeGB: integer ,
iops: integer ,
autoGrow: enum ,
logOnDisk: enum ,
storageSku: string ,
autoIoScaling: enum ,
storageRedundancy: enum ,
}
,
backup:
{
backupRetentionDays: integer ,
backupIntervalHours: integer ,
geoRedundantBackup: enum ,
earliestRestoreDate: string ,
}
,
highAvailability:
{
mode: enum ,
state: enum ,
standbyAvailabilityZone: string ,
replicationMode: enum ,
}
,
network:
{
publicNetworkAccess: enum ,
delegatedSubnetResourceId: string ,
privateDnsZoneResourceId: string ,
}
,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
maintenancePolicy:
{
patchStrategy: enum ,
}
,
maintenanceWindow:
{
customWindow: string ,
startHour: integer ,
startMinute: integer ,
dayOfWeek: integer ,
batchOfMaintenance: enum ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
lowerCaseTableNames: integer ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
}
,
}

⚐ Response (200)

{
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
fullVersion: string ,
availabilityZone: string ,
createMode: enum ,
sourceServerResourceId: string ,
restorePointInTime: string ,
replicationRole: enum ,
replicaCapacity: integer ,
dataEncryption:
{
primaryUserAssignedIdentityId: string ,
primaryKeyURI: string ,
geoBackupUserAssignedIdentityId: string ,
geoBackupKeyURI: string ,
type: enum ,
}
,
state: enum ,
fullyQualifiedDomainName: string ,
databasePort: integer ,
storage:
{
storageSizeGB: integer ,
iops: integer ,
autoGrow: enum ,
logOnDisk: enum ,
storageSku: string ,
autoIoScaling: enum ,
storageRedundancy: enum ,
}
,
backup:
{
backupRetentionDays: integer ,
backupIntervalHours: integer ,
geoRedundantBackup: enum ,
earliestRestoreDate: string ,
}
,
highAvailability:
{
mode: enum ,
state: enum ,
standbyAvailabilityZone: string ,
replicationMode: enum ,
}
,
network:
{
publicNetworkAccess: enum ,
delegatedSubnetResourceId: string ,
privateDnsZoneResourceId: string ,
}
,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
maintenancePolicy:
{
patchStrategy: enum ,
}
,
maintenanceWindow:
{
customWindow: string ,
startHour: integer ,
startMinute: integer ,
dayOfWeek: integer ,
batchOfMaintenance: enum ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
lowerCaseTableNames: integer ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
}

⚐ Response (201)

{
$headers:
{
location: string ,
retry-after: integer ,
}
,
$schema:
{
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
fullVersion: string ,
availabilityZone: string ,
createMode: enum ,
sourceServerResourceId: string ,
restorePointInTime: string ,
replicationRole: enum ,
replicaCapacity: integer ,
dataEncryption:
{
primaryUserAssignedIdentityId: string ,
primaryKeyURI: string ,
geoBackupUserAssignedIdentityId: string ,
geoBackupKeyURI: string ,
type: enum ,
}
,
state: enum ,
fullyQualifiedDomainName: string ,
databasePort: integer ,
storage:
{
storageSizeGB: integer ,
iops: integer ,
autoGrow: enum ,
logOnDisk: enum ,
storageSku: string ,
autoIoScaling: enum ,
storageRedundancy: enum ,
}
,
backup:
{
backupRetentionDays: integer ,
backupIntervalHours: integer ,
geoRedundantBackup: enum ,
earliestRestoreDate: string ,
}
,
highAvailability:
{
mode: enum ,
state: enum ,
standbyAvailabilityZone: string ,
replicationMode: enum ,
}
,
network:
{
publicNetworkAccess: enum ,
delegatedSubnetResourceId: string ,
privateDnsZoneResourceId: string ,
}
,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
maintenancePolicy:
{
patchStrategy: enum ,
}
,
maintenanceWindow:
{
customWindow: string ,
startHour: integer ,
startMinute: integer ,
dayOfWeek: integer ,
batchOfMaintenance: enum ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
lowerCaseTableNames: integer ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
}
,
}

⚐ Response (202)

{
location: string ,
retry-after: integer ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Servers_Update (updated)
Description Updates an existing server. The request body can contain one to many of the properties present in the normal server definition.
Reference Link ¶

⚶ Changes

{
  "#id": "Servers_Update",
  "$parameters": {
    "parameters": {
      "$properties": {
        "properties": [
          {
            "#name": "version",
            "Enum": {
              "new": [
                [
                  "5.7",
                  ""
                ],
                [
                  "8.0.21",
                  ""
                ],
                [
                  "8.4",
                  ""
                ]
              ],
              "old": [
                [
                  "5.7",
                  ""
                ],
                [
                  "8.0.21",
                  ""
                ]
              ]
            }
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "#name": "version",
            "Enum": {
              "new": [
                [
                  "5.7",
                  ""
                ],
                [
                  "8.0.21",
                  ""
                ],
                [
                  "8.4",
                  ""
                ]
              ],
              "old": [
                [
                  "5.7",
                  ""
                ],
                [
                  "8.0.21",
                  ""
                ]
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
serverName: string ,
parameters:
{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
properties:
{
administratorLoginPassword: string ,
version: enum ,
storage:
{
storageSizeGB: integer ,
iops: integer ,
autoGrow: enum ,
logOnDisk: enum ,
storageSku: string ,
autoIoScaling: enum ,
storageRedundancy: enum ,
}
,
backup:
{
backupRetentionDays: integer ,
backupIntervalHours: integer ,
geoRedundantBackup: enum ,
earliestRestoreDate: string ,
}
,
highAvailability:
{
mode: enum ,
state: enum ,
standbyAvailabilityZone: string ,
replicationMode: enum ,
}
,
maintenancePolicy:
{
patchStrategy: enum ,
}
,
maintenanceWindow:
{
customWindow: string ,
startHour: integer ,
startMinute: integer ,
dayOfWeek: integer ,
batchOfMaintenance: enum ,
}
,
replicationRole: enum ,
dataEncryption:
{
primaryUserAssignedIdentityId: string ,
primaryKeyURI: string ,
geoBackupUserAssignedIdentityId: string ,
geoBackupKeyURI: string ,
type: enum ,
}
,
network:
{
publicNetworkAccess: enum ,
delegatedSubnetResourceId: string ,
privateDnsZoneResourceId: string ,
}
,
}
,
tags: object ,
}
,
}

⚐ Response (200)

{
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
fullVersion: string ,
availabilityZone: string ,
createMode: enum ,
sourceServerResourceId: string ,
restorePointInTime: string ,
replicationRole: enum ,
replicaCapacity: integer ,
dataEncryption:
{
primaryUserAssignedIdentityId: string ,
primaryKeyURI: string ,
geoBackupUserAssignedIdentityId: string ,
geoBackupKeyURI: string ,
type: enum ,
}
,
state: enum ,
fullyQualifiedDomainName: string ,
databasePort: integer ,
storage:
{
storageSizeGB: integer ,
iops: integer ,
autoGrow: enum ,
logOnDisk: enum ,
storageSku: string ,
autoIoScaling: enum ,
storageRedundancy: enum ,
}
,
backup:
{
backupRetentionDays: integer ,
backupIntervalHours: integer ,
geoRedundantBackup: enum ,
earliestRestoreDate: string ,
}
,
highAvailability:
{
mode: enum ,
state: enum ,
standbyAvailabilityZone: string ,
replicationMode: enum ,
}
,
network:
{
publicNetworkAccess: enum ,
delegatedSubnetResourceId: string ,
privateDnsZoneResourceId: string ,
}
,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
maintenancePolicy:
{
patchStrategy: enum ,
}
,
maintenanceWindow:
{
customWindow: string ,
startHour: integer ,
startMinute: integer ,
dayOfWeek: integer ,
batchOfMaintenance: enum ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
lowerCaseTableNames: integer ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
}

⚐ Response (202)

{
location: string ,
retry-after: integer ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ServersMigration_CutoverMigration (updated)
Description Cutover migration for MySQL import, it will switch source elastic server DNS to flexible server.
Reference Link ¶

⚶ Changes

{
  "#id": "ServersMigration_CutoverMigration",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "#name": "version",
            "Enum": {
              "new": [
                [
                  "5.7",
                  ""
                ],
                [
                  "8.0.21",
                  ""
                ],
                [
                  "8.4",
                  ""
                ]
              ],
              "old": [
                [
                  "5.7",
                  ""
                ],
                [
                  "8.0.21",
                  ""
                ]
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/cutoverMigration
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
serverName: string ,
}

⚐ Response (200)

{
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
fullVersion: string ,
availabilityZone: string ,
createMode: enum ,
sourceServerResourceId: string ,
restorePointInTime: string ,
replicationRole: enum ,
replicaCapacity: integer ,
dataEncryption:
{
primaryUserAssignedIdentityId: string ,
primaryKeyURI: string ,
geoBackupUserAssignedIdentityId: string ,
geoBackupKeyURI: string ,
type: enum ,
}
,
state: enum ,
fullyQualifiedDomainName: string ,
databasePort: integer ,
storage:
{
storageSizeGB: integer ,
iops: integer ,
autoGrow: enum ,
logOnDisk: enum ,
storageSku: string ,
autoIoScaling: enum ,
storageRedundancy: enum ,
}
,
backup:
{
backupRetentionDays: integer ,
backupIntervalHours: integer ,
geoRedundantBackup: enum ,
earliestRestoreDate: string ,
}
,
highAvailability:
{
mode: enum ,
state: enum ,
standbyAvailabilityZone: string ,
replicationMode: enum ,
}
,
network:
{
publicNetworkAccess: enum ,
delegatedSubnetResourceId: string ,
privateDnsZoneResourceId: string ,
}
,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
maintenancePolicy:
{
patchStrategy: enum ,
}
,
maintenanceWindow:
{
customWindow: string ,
startHour: integer ,
startMinute: integer ,
dayOfWeek: integer ,
batchOfMaintenance: enum ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
lowerCaseTableNames: integer ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (default)

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

⚶ Changes

{
  "#id": "Servers_DetachVNet",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "#name": "version",
            "Enum": {
              "new": [
                [
                  "5.7",
                  ""
                ],
                [
                  "8.0.21",
                  ""
                ],
                [
                  "8.4",
                  ""
                ]
              ],
              "old": [
                [
                  "5.7",
                  ""
                ],
                [
                  "8.0.21",
                  ""
                ]
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/detachVNet
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
serverName: string ,
parameters:
{
publicNetworkAccess: enum ,
}
,
}

⚐ Response (200)

{
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
fullVersion: string ,
availabilityZone: string ,
createMode: enum ,
sourceServerResourceId: string ,
restorePointInTime: string ,
replicationRole: enum ,
replicaCapacity: integer ,
dataEncryption:
{
primaryUserAssignedIdentityId: string ,
primaryKeyURI: string ,
geoBackupUserAssignedIdentityId: string ,
geoBackupKeyURI: string ,
type: enum ,
}
,
state: enum ,
fullyQualifiedDomainName: string ,
databasePort: integer ,
storage:
{
storageSizeGB: integer ,
iops: integer ,
autoGrow: enum ,
logOnDisk: enum ,
storageSku: string ,
autoIoScaling: enum ,
storageRedundancy: enum ,
}
,
backup:
{
backupRetentionDays: integer ,
backupIntervalHours: integer ,
geoRedundantBackup: enum ,
earliestRestoreDate: string ,
}
,
highAvailability:
{
mode: enum ,
state: enum ,
standbyAvailabilityZone: string ,
replicationMode: enum ,
}
,
network:
{
publicNetworkAccess: enum ,
delegatedSubnetResourceId: string ,
privateDnsZoneResourceId: string ,
}
,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
maintenancePolicy:
{
patchStrategy: enum ,
}
,
maintenanceWindow:
{
customWindow: string ,
startHour: integer ,
startMinute: integer ,
dayOfWeek: integer ,
batchOfMaintenance: enum ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
lowerCaseTableNames: integer ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
}

⚐ Response (202)

{
azure-asyncoperation: string ,
location: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Replicas_ListByServer (updated)
Description List all the replicas for a given server.
Reference Link ¶

⚶ Changes

{
  "#id": "Replicas_ListByServer",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "#name": "version",
                "Enum": {
                  "new": [
                    [
                      "5.7",
                      ""
                    ],
                    [
                      "8.0.21",
                      ""
                    ],
                    [
                      "8.4",
                      ""
                    ]
                  ],
                  "old": [
                    [
                      "5.7",
                      ""
                    ],
                    [
                      "8.0.21",
                      ""
                    ]
                  ]
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/replicas
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
serverName: string ,
}

⚐ Response (200)

{
value:
[
{
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
fullVersion: string ,
availabilityZone: string ,
createMode: enum ,
sourceServerResourceId: string ,
restorePointInTime: string ,
replicationRole: enum ,
replicaCapacity: integer ,
dataEncryption:
{
primaryUserAssignedIdentityId: string ,
primaryKeyURI: string ,
geoBackupUserAssignedIdentityId: string ,
geoBackupKeyURI: string ,
type: enum ,
}
,
state: enum ,
fullyQualifiedDomainName: string ,
databasePort: integer ,
storage:
{
storageSizeGB: integer ,
iops: integer ,
autoGrow: enum ,
logOnDisk: enum ,
storageSku: string ,
autoIoScaling: enum ,
storageRedundancy: enum ,
}
,
backup:
{
backupRetentionDays: integer ,
backupIntervalHours: integer ,
geoRedundantBackup: enum ,
earliestRestoreDate: string ,
}
,
highAvailability:
{
mode: enum ,
state: enum ,
standbyAvailabilityZone: string ,
replicationMode: enum ,
}
,
network:
{
publicNetworkAccess: enum ,
delegatedSubnetResourceId: string ,
privateDnsZoneResourceId: string ,
}
,
privateEndpointConnections:
[
{
properties:
{
groupIds:
[
string ,
]
,
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
provisioningState: enum ,
}
,
}
,
]
,
maintenancePolicy:
{
patchStrategy: enum ,
}
,
maintenanceWindow:
{
customWindow: string ,
startHour: integer ,
startMinute: integer ,
dayOfWeek: integer ,
batchOfMaintenance: enum ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
lowerCaseTableNames: integer ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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