Azure Database for MySQL Servers Migration API
The ServersMigration API from Azure Database for MySQL — 1 operation(s) for serversmigration.
The ServersMigration API from Azure Database for MySQL — 1 operation(s) for serversmigration.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/microsoft-azure-mysql:microsoft-azure-mysql-serversmigration-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: MySQLManagementClient Servers Migration API
version: '2024-12-30'
description: The Microsoft Azure management API provides create, read, update, and delete functionality for Azure MySQL resources including servers, databases, firewall rules, VNET rules, log files and configurations with new business model.
x-typespec-generated:
- emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
- user_impersonation
tags:
- name: ServersMigration
paths:
? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/flexibleServers/{serverName}/cutoverMigration
: post:
operationId: ServersMigration_CutoverMigration
tags:
- ServersMigration
description: Cutover migration for MySQL import, it will switch source elastic server DNS to flexible server.
parameters:
- $ref: '#/components/parameters/ApiVersionParameter'
- $ref: '#/components/parameters/SubscriptionIdParameter'
- $ref: '#/components/parameters/ResourceGroupNameParameter'
- name: serverName
in: path
description: The name of the server.
required: true
schema:
type: string
maxLength: 63
minLength: 1
pattern: ^[a-z0-9][-a-z0-9]*(?<!-)$
responses:
'200':
description: Azure operation completed successfully.
content:
application/json:
schema:
$ref: '#/components/schemas/Server'
'202':
description: Resource operation accepted.
headers:
Azure-AsyncOperation:
description: A link to the status monitor
schema:
type: string
Location:
description: The Location header contains the URL where the status of the long running operation can be checked.
schema:
type: string
default:
description: An unexpected error response.
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-long-running-operation-options:
final-state-via: azure-async-operation
final-state-schema: '#/definitions/Server'
x-ms-long-running-operation: true
summary: Servers migration cutover migration
x-summary-source: derived
components:
schemas:
ServerState:
type: string
description: The state of a server.
enum:
- Ready
- Dropping
- Disabled
- Starting
- Stopping
- Stopped
- Updating
x-ms-enum:
name: ServerState
modelAsString: true
values:
- name: Ready
value: Ready
- name: Dropping
value: Dropping
- name: Disabled
value: Disabled
- name: Starting
value: Starting
- name: Stopping
value: Stopping
- name: Stopped
value: Stopped
- name: Updating
value: Updating
Resource:
type: object
title: Resource
description: Common fields that are returned in the response for all Azure Resource Manager resources
properties:
id:
type: string
format: arm-id
description: Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
readOnly: true
name:
type: string
description: The name of the resource
readOnly: true
type:
type: string
description: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
readOnly: true
systemData:
$ref: '#/components/schemas/systemData'
description: Azure Resource Manager metadata containing createdBy and modifiedBy information.
readOnly: true
x-ms-azure-resource: true
ManagedServiceIdentityType:
type: string
description: Type of managed service identity.
enum:
- UserAssigned
x-ms-enum:
name: ManagedServiceIdentityType
modelAsString: true
values:
- name: UserAssigned
value: UserAssigned
MaintenanceWindow:
type: object
description: Maintenance window of a server.
properties:
customWindow:
type: string
description: indicates whether custom window is enabled or disabled
startHour:
type: integer
format: int32
description: start hour for maintenance window
startMinute:
type: integer
format: int32
description: start minute for maintenance window
dayOfWeek:
type: integer
format: int32
description: day of week for maintenance window
batchOfMaintenance:
$ref: '#/components/schemas/BatchOfMaintenance'
description: The batch of maintenance when enabled the custom managed maintenance window of a server.
ReplicationRole:
type: string
description: The replication role.
enum:
- None
- Source
- Replica
x-ms-enum:
name: ReplicationRole
modelAsString: true
values:
- name: None
value: None
- name: Source
value: Source
- name: Replica
value: Replica
TrackedResource:
type: object
title: Tracked Resource
description: The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location'
properties:
tags:
type: object
description: Resource tags.
additionalProperties:
type: string
x-ms-mutability:
- read
- create
- update
location:
type: string
description: The geo-location where the resource lives
x-ms-mutability:
- read
- create
required:
- location
allOf:
- $ref: '#/components/schemas/Resource'
Network:
type: object
description: Network related properties of a server
properties:
publicNetworkAccess:
$ref: '#/components/schemas/EnableStatusEnum'
description: Whether or not public network access is allowed for this server. Value is 'Disabled' when server has VNet integration.
delegatedSubnetResourceId:
type: string
description: Delegated subnet resource id used to setup vnet for a server.
privateDnsZoneResourceId:
type: string
description: Private DNS zone resource id.
ServerVersion:
type: string
description: The major version of a server. 8.0.21 stands for MySQL 8.0, 5.7.44 stands for MySQL 5.7
enum:
- '5.7'
- 8.0.21
x-ms-enum:
name: ServerVersion
modelAsString: true
values:
- name: '5.7'
value: '5.7'
- name: 8.0.21
value: 8.0.21
PrivateEndpointConnection:
type: object
description: The private endpoint connection resource.
properties:
properties:
$ref: '#/components/schemas/PrivateEndpointConnectionProperties'
description: Resource properties.
x-ms-client-flatten: true
allOf:
- $ref: '#/components/schemas/Resource'
CreateMode:
type: string
description: The mode to create a new MySQL server.
enum:
- Default
- PointInTimeRestore
- Replica
- GeoRestore
x-ms-enum:
name: CreateMode
modelAsString: true
values:
- name: Default
value: Default
- name: PointInTimeRestore
value: PointInTimeRestore
- name: Replica
value: Replica
- name: GeoRestore
value: GeoRestore
HighAvailabilityMode:
type: string
description: High availability mode for a server.
enum:
- Disabled
- ZoneRedundant
- SameZone
x-ms-enum:
name: HighAvailabilityMode
modelAsString: true
values:
- name: Disabled
value: Disabled
- name: ZoneRedundant
value: ZoneRedundant
- name: SameZone
value: SameZone
ServerProperties:
type: object
description: The properties of a server.
properties:
administratorLogin:
type: string
description: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).
x-ms-mutability:
- read
- create
administratorLoginPassword:
type: string
format: password
description: The password of the administrator login (required for server creation).
x-ms-mutability:
- update
- create
x-ms-secret: true
version:
$ref: '#/components/schemas/ServerVersion'
description: Major version of MySQL. 8.0.21 stands for MySQL 8.0, 5.7.44 stands for MySQL 5.7
fullVersion:
type: string
description: Major version and actual engine version
readOnly: true
availabilityZone:
type: string
description: availability Zone information of the server.
x-ms-mutability:
- read
- create
createMode:
$ref: '#/components/schemas/CreateMode'
description: The mode to create a new MySQL server.
x-ms-mutability:
- create
sourceServerResourceId:
type: string
description: The source MySQL server id.
x-ms-mutability:
- read
- create
restorePointInTime:
type: string
format: date-time
description: Restore point creation time (ISO8601 format), specifying the time to restore from.
x-ms-mutability:
- create
replicationRole:
$ref: '#/components/schemas/ReplicationRole'
description: The replication role.
replicaCapacity:
type: integer
format: int32
description: The maximum number of replicas that a primary server can have.
minimum: 0
readOnly: true
dataEncryption:
$ref: '#/components/schemas/DataEncryption'
description: The Data Encryption for CMK.
state:
$ref: '#/components/schemas/ServerState'
description: The state of a server.
readOnly: true
fullyQualifiedDomainName:
type: string
description: The fully qualified domain name of a server.
readOnly: true
databasePort:
type: integer
format: int32
description: The server database port. Can only be specified when the server is being created.
x-ms-mutability:
- read
- create
storage:
$ref: '#/components/schemas/Storage'
description: Storage related properties of a server.
backup:
$ref: '#/components/schemas/Backup'
description: Backup related properties of a server.
highAvailability:
$ref: '#/components/schemas/HighAvailability'
description: High availability related properties of a server.
network:
$ref: '#/components/schemas/Network'
description: Network related properties of a server.
x-ms-mutability:
- read
- create
privateEndpointConnections:
type: array
description: PrivateEndpointConnections related properties of a server.
items:
$ref: '#/components/schemas/PrivateEndpointConnection'
readOnly: true
maintenancePolicy:
$ref: '#/components/schemas/MaintenancePolicy'
description: Maintenance policy of a server.
maintenanceWindow:
$ref: '#/components/schemas/MaintenanceWindow'
description: 'Maintenance window of a server. Known issue: cannot be set during server creation or updated with other properties during server update; must be updated separately.'
x-ms-mutability:
- read
- update
importSourceProperties:
$ref: '#/components/schemas/ImportSourceProperties'
description: Source properties for import from storage.
Backup:
type: object
description: Storage Profile properties of a server
properties:
backupRetentionDays:
type: integer
format: int32
description: Backup retention days for the server.
backupIntervalHours:
type: integer
format: int32
description: Backup interval hours for the server.
geoRedundantBackup:
type: string
description: Whether or not geo redundant backup is enabled.
default: Disabled
enum:
- Enabled
- Disabled
x-ms-enum:
name: EnableStatusEnum
modelAsString: true
values:
- name: Enabled
value: Enabled
- name: Disabled
value: Disabled
earliestRestoreDate:
type: string
format: date-time
description: Earliest restore point creation time (ISO8601 format)
readOnly: true
DataEncryptionType:
type: string
description: The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.
enum:
- AzureKeyVault
- SystemManaged
x-ms-enum:
name: DataEncryptionType
modelAsString: false
MySQLServerSku:
type: object
description: Billing information related properties of a server.
properties:
name:
type: string
description: The name of the sku, e.g. Standard_D32s_v3.
tier:
$ref: '#/components/schemas/ServerSkuTier'
description: The tier of the particular SKU, e.g. GeneralPurpose.
required:
- name
- tier
Server:
type: object
description: Represents a server.
properties:
properties:
$ref: '#/components/schemas/ServerProperties'
description: Properties of the server.
x-ms-client-flatten: true
identity:
$ref: '#/components/schemas/MySQLServerIdentity'
description: The cmk identity for the server.
sku:
$ref: '#/components/schemas/MySQLServerSku'
description: The SKU (pricing tier) of the server.
allOf:
- $ref: '#/components/schemas/TrackedResource'
BatchOfMaintenance:
type: string
description: The batch of maintenance when enabled the custom managed maintenance window of a server.
enum:
- Default
- Batch1
- Batch2
x-ms-enum:
name: BatchOfMaintenance
modelAsString: true
values:
- name: Default
value: Default
- name: Batch1
value: Batch1
- name: Batch2
value: Batch2
ErrorResponse:
type: object
title: Error response
description: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
properties:
error:
$ref: '#/components/schemas/ErrorDetail'
description: The error object.
Storage:
type: object
description: Storage Profile properties of a server
properties:
storageSizeGB:
type: integer
format: int32
description: Max storage size allowed for a server.
iops:
type: integer
format: int32
description: Storage IOPS for a server.
autoGrow:
type: string
description: Enable Storage Auto Grow or not.
default: Disabled
enum:
- Enabled
- Disabled
x-ms-enum:
name: EnableStatusEnum
modelAsString: true
values:
- name: Enabled
value: Enabled
- name: Disabled
value: Disabled
logOnDisk:
type: string
description: Enable Log On Disk or not.
default: Disabled
enum:
- Enabled
- Disabled
x-ms-enum:
name: EnableStatusEnum
modelAsString: true
values:
- name: Enabled
value: Enabled
- name: Disabled
value: Disabled
storageSku:
type: string
description: The sku name of the server storage.
readOnly: true
autoIoScaling:
type: string
description: Enable IO Auto Scaling or not.
default: Enabled
enum:
- Enabled
- Disabled
x-ms-enum:
name: EnableStatusEnum
modelAsString: true
values:
- name: Enabled
value: Enabled
- name: Disabled
value: Disabled
storageRedundancy:
type: string
description: The redundant type of the server storage. The parameter is used for server creation.
default: LocalRedundancy
enum:
- LocalRedundancy
- ZoneRedundancy
x-ms-enum:
name: StorageRedundancyEnum
modelAsString: true
values:
- name: LocalRedundancy
value: LocalRedundancy
- name: ZoneRedundancy
value: ZoneRedundancy
x-ms-mutability:
- read
- create
MaintenancePolicy:
type: object
description: Maintenance policy of a server.
properties:
patchStrategy:
$ref: '#/components/schemas/PatchStrategy'
description: The patch strategy of this server
ErrorDetail:
type: object
description: The error detail.
properties:
code:
type: string
description: The error code.
readOnly: true
message:
type: string
description: The error message.
readOnly: true
target:
type: string
description: The error target.
readOnly: true
details:
type: array
description: The error details.
items:
$ref: '#/components/schemas/ErrorDetail'
readOnly: true
x-ms-identifiers:
- message
- target
additionalInfo:
type: array
description: The error additional info.
items:
$ref: '#/components/schemas/ErrorAdditionalInfo'
readOnly: true
x-ms-identifiers: []
EnableStatusEnum:
type: string
description: Enum to indicate whether value is 'Enabled' or 'Disabled'
enum:
- Enabled
- Disabled
x-ms-enum:
name: EnableStatusEnum
modelAsString: true
values:
- name: Enabled
value: Enabled
- name: Disabled
value: Disabled
DataEncryption:
type: object
description: The date encryption for cmk.
properties:
primaryUserAssignedIdentityId:
type: string
description: Primary user identity resource id
primaryKeyURI:
type: string
description: Primary key uri
geoBackupUserAssignedIdentityId:
type: string
description: Geo backup user identity resource id as identity can't cross region, need identity in same region as geo backup
geoBackupKeyURI:
type: string
description: Geo backup key uri as key vault can't cross region, need cmk in same region as geo backup
type:
$ref: '#/components/schemas/DataEncryptionType'
description: The key type, AzureKeyVault for enable cmk, SystemManaged for disable cmk.
UserAssignedIdentity:
type: object
description: Metadata of user assigned identity.
properties:
principalId:
type: string
description: Principal Id of user assigned identity
readOnly: true
x-ms-client-name: PrincipalId
clientId:
type: string
description: Client Id of user assigned identity
readOnly: true
x-ms-client-name: ClientId
ImportSourceStorageType:
type: string
description: Storage type of import source.
enum:
- AzureBlob
x-ms-enum:
name: ImportSourceStorageType
modelAsString: true
values:
- name: AzureBlob
value: AzureBlob
ServerSkuTier:
type: string
description: The tier of the particular SKU, e.g. GeneralPurpose.
enum:
- Burstable
- GeneralPurpose
- MemoryOptimized
x-ms-enum:
name: ServerSkuTier
modelAsString: true
values:
- name: Burstable
value: Burstable
- name: GeneralPurpose
value: GeneralPurpose
- name: MemoryOptimized
value: MemoryOptimized
MySQLServerIdentity:
type: object
description: Properties to configure Identity for Bring your Own Keys
properties:
principalId:
type: string
description: ObjectId from the KeyVault
readOnly: true
tenantId:
type: string
description: TenantId from the KeyVault
readOnly: true
type:
$ref: '#/components/schemas/ManagedServiceIdentityType'
description: Type of managed service identity.
userAssignedIdentities:
type: object
description: Metadata of user assigned identity.
additionalProperties:
$ref: '#/components/schemas/UserAssignedIdentity'
PatchStrategy:
type: string
description: Enum to indicate the patch strategy of a server
enum:
- Regular
- VirtualCanary
x-ms-enum:
name: PatchStrategy
modelAsString: true
values:
- name: Regular
value: Regular
- name: VirtualCanary
value: VirtualCanary
ImportSourceProperties:
type: object
description: Import source related properties.
properties:
storageType:
$ref: '#/components/schemas/ImportSourceStorageType'
description: Storage type of import source.
x-ms-mutability:
- read
- create
storageUrl:
type: string
description: Uri of the import source storage.
x-ms-mutability:
- read
- create
sasToken:
type: string
format: password
description: Sas token for accessing source storage. Read and list permissions are required for sas token.
x-ms-mutability:
- create
x-ms-secret: true
dataDirPath:
type: string
description: Relative path of data directory in storage.
x-ms-mutability:
- read
- create
HighAvailabilityState:
type: string
description: The state of server high availability.
enum:
- NotEnabled
- CreatingStandby
- Healthy
- FailingOver
- RemovingStandby
x-ms-enum:
name: HighAvailabilityState
modelAsString: true
values:
- name: NotEnabled
value: NotEnabled
- name: CreatingStandby
value: CreatingStandby
- name: Healthy
value: Healthy
- name: FailingOver
value: FailingOver
- name: RemovingStandby
value: RemovingStandby
HighAvailability:
type: object
description: High availability properties of a server
properties:
mode:
$ref: '#/components/schemas/HighAvailabilityMode'
description: High availability mode for a server.
state:
$ref: '#/components/schemas/HighAvailabilityState'
description: The state of server high availability.
readOnly: true
standbyAvailabilityZone:
type: string
description: Availability zone of the standby server.
parameters:
SubscriptionIdParameter:
name: subscriptionId
in: path
description: The ID of the target subscription. The value must be an UUID.
required: true
schema:
type: string
format: uuid
ResourceGroupNameParameter:
name: resourceGroupName
in: path
description: The name of the resource group. The name is case insensitive.
required: true
x-ms-parameter-location: method
schema:
type: string
maxLength: 90
minLength: 1
ApiVersionParameter:
name: api-version
in: query
description: The API version to use for this operation.
required: true
schema:
type: string
minLength: 1
securitySchemes:
azure_auth:
type: oauth2
flows:
implicit:
scopes:
user_impersonation: impersonate your user account
authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
description: Azure Active Directory OAuth2 Flow.