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

2025/06/19 • 19 new, 19 deleted methods

AdvancedThreatProtectionSettings_Get (new)
Description Get a server's Advanced Threat Protection state
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
properties:
{
creationTime: string ,
state: enum ,
provisioningState: enum ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
AdvancedThreatProtectionSettings_Update (new)
Description Updates a server's Advanced Threat Protection state.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}
{
resourceGroupName: string ,
serverName: string ,
advancedThreatProtectionName: string ,
parameters:
{
properties:
{
state: enum ,
}
,
}
,
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
creationTime: string ,
state: enum ,
provisioningState: enum ,
}
,
}

⚐ Response (202)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
AdvancedThreatProtectionSettings_UpdatePut (new)
Description Updates a server's Advanced Threat Protection state.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}
{
resourceGroupName: string ,
serverName: string ,
advancedThreatProtectionName: string ,
parameters:
{
properties:
{
creationTime: string ,
state: enum ,
provisioningState: enum ,
}
,
}
,
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
creationTime: string ,
state: enum ,
provisioningState: enum ,
}
,
}

⚐ Response (201)

{
properties:
{
creationTime: string ,
state: enum ,
provisioningState: enum ,
}
,
}

⚐ Response (202)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
AdvancedThreatProtectionSettings_List (new)
Description Gets a list of server's Advanced Threat Protection states.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
creationTime: string ,
state: enum ,
provisioningState: enum ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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

⚼ Request

PUT:  /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:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
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 ,
}
,
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 ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
}
,
}
,
}

⚐ Response (200)

{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
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 ,
}
,
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 ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
}
,
}

⚐ Response (201)

{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
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 ,
}
,
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 ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
}
,
}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

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

⚼ 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 ,
}
,
maintenancePolicy:
{
patchStrategy: enum ,
}
,
maintenanceWindow:
{
customWindow: string ,
startHour: integer ,
startMinute: integer ,
dayOfWeek: integer ,
}
,
replicationRole: enum ,
dataEncryption:
{
primaryUserAssignedIdentityId: string ,
primaryKeyURI: string ,
geoBackupUserAssignedIdentityId: string ,
geoBackupKeyURI: string ,
type: enum ,
}
,
network:
{
publicNetworkAccess: enum ,
delegatedSubnetResourceId: string ,
privateDnsZoneResourceId: string ,
}
,
}
,
tags: object ,
}
,
}

⚐ Response (200)

{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
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 ,
}
,
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 ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
}
,
}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{}

⚐ Response (202)

{
location: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
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 ,
}
,
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 ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
}
,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{
value:
[
{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
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 ,
}
,
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 ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{
value:
[
{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
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 ,
}
,
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 ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Servers_Failover (new)
Description Manual failover a server.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Servers_ValidateEstimateHighAvailability (new)
Description Validate a deployment of high availability.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/validateEstimateHighAvailability
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
serverName: string ,
parameters:
{
estimatedDowntime: integer ,
scheduledStandbyAvailabilityZone: string ,
expectedStandbyAvailabilityZone: string ,
}
,
}

⚐ Response (200)

{
estimatedDowntime: integer ,
scheduledStandbyAvailabilityZone: string ,
expectedStandbyAvailabilityZone: string ,
}

⚐ Response (default)

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

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/restart
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
serverName: string ,
parameters:
{
restartWithFailover: enum ,
maxFailoverSeconds: integer ,
}
,
}

⚐ Response (200)

{}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Servers_ResetGtid (new)
Description Resets GTID on a server.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

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

⚼ 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)

{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
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 ,
}
,
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 ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
}
,
}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{
value:
[
{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
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 ,
}
,
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 ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
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 ,
}
,
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 ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
}
,
}

⚐ Response (202)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
AdvancedThreatProtectionSettings_Get (removed)
Description Get a server's Advanced Threat Protection state
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
properties:
{
creationTime: string ,
state: enum ,
provisioningState: enum ,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
AdvancedThreatProtectionSettings_Update (removed)
Description Updates a server's Advanced Threat Protection state.
Reference Link ¶

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}
{
resourceGroupName: string ,
serverName: string ,
advancedThreatProtectionName: string ,
parameters:
{
properties:
{
state: enum ,
}
,
}
,
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
creationTime: string ,
state: enum ,
provisioningState: enum ,
}
,
}

⚐ Response (202)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
AdvancedThreatProtectionSettings_UpdatePut (removed)
Description Updates a server's Advanced Threat Protection state.
Reference Link ¶

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/advancedThreatProtectionSettings/{advancedThreatProtectionName}
{
resourceGroupName: string ,
serverName: string ,
advancedThreatProtectionName: string ,
parameters:
{
properties:
{
creationTime: string ,
state: enum ,
provisioningState: enum ,
}
,
}
,
subscriptionId: string ,
api-version: string ,
}

⚐ Response (200)

{
properties:
{
creationTime: string ,
state: enum ,
provisioningState: enum ,
}
,
}

⚐ Response (201)

{
properties:
{
creationTime: string ,
state: enum ,
provisioningState: enum ,
}
,
}

⚐ Response (202)

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

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
AdvancedThreatProtectionSettings_List (removed)
Description Gets a list of server's Advanced Threat Protection states.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{
value:
[
{
properties:
{
creationTime: string ,
state: enum ,
provisioningState: enum ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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

⚼ Request

PUT:  /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:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
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 ,
}
,
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 ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
}
,
}
,
}

⚐ Response (200)

{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
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 ,
}
,
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 ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
}
,
}

⚐ Response (201)

{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
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 ,
}
,
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 ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
}
,
}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

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

⚼ 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 ,
}
,
maintenancePolicy:
{
patchStrategy: enum ,
}
,
maintenanceWindow:
{
customWindow: string ,
startHour: integer ,
startMinute: integer ,
dayOfWeek: integer ,
}
,
replicationRole: enum ,
dataEncryption:
{
primaryUserAssignedIdentityId: string ,
primaryKeyURI: string ,
geoBackupUserAssignedIdentityId: string ,
geoBackupKeyURI: string ,
type: enum ,
}
,
network:
{
publicNetworkAccess: enum ,
delegatedSubnetResourceId: string ,
privateDnsZoneResourceId: string ,
}
,
}
,
tags: object ,
}
,
}

⚐ Response (200)

{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
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 ,
}
,
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 ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
}
,
}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{}

⚐ Response (202)

{
location: string ,
}

⚐ Response (204)

{}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
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 ,
}
,
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 ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
}
,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{
value:
[
{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
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 ,
}
,
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 ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{
value:
[
{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
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 ,
}
,
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 ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Servers_Failover (removed)
Description Manual failover a server.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Servers_ValidateEstimateHighAvailability (removed)
Description Validate a deployment of high availability.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/validateEstimateHighAvailability
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
serverName: string ,
parameters:
{
estimatedDowntime: integer ,
scheduledStandbyAvailabilityZone: string ,
expectedStandbyAvailabilityZone: string ,
}
,
}

⚐ Response (200)

{
estimatedDowntime: integer ,
scheduledStandbyAvailabilityZone: string ,
expectedStandbyAvailabilityZone: string ,
}

⚐ Response (default)

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

⚼ Request

POST:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/restart
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
serverName: string ,
parameters:
{
restartWithFailover: enum ,
maxFailoverSeconds: integer ,
}
,
}

⚐ Response (200)

{}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
Servers_ResetGtid (removed)
Description Resets GTID on a server.
Reference Link ¶

⚼ Request

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

⚐ Response (200)

{}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

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

⚼ 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)

{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
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 ,
}
,
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 ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
}
,
}

⚐ Response (202)

{
location: string ,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{
value:
[
{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
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 ,
}
,
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 ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

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

⚼ Request

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

⚐ Response (200)

{
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
sku:
{
name: string ,
tier: enum ,
}
,
properties:
{
administratorLogin: string ,
administratorLoginPassword: string ,
version: enum ,
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 ,
}
,
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 ,
}
,
importSourceProperties:
{
storageType: enum ,
storageUrl: string ,
sasToken: string ,
dataDirPath: string ,
}
,
}
,
}

⚐ Response (202)

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

⚐ Response (default)

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