Web Apps - Migrate My Sql
将本地(应用内)MySql 数据库迁移到远程 MySql 数据库的说明。
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/migratemysql?api-version=2025-03-01
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
name
|
path | True |
string |
Web 应用的名称。 |
|
resource
|
path | True |
string minLength: 1maxLength: 90 pattern: ^[-\w\._\(\)]+[^\.]$ |
资源所属的资源组的名称。 |
|
subscription
|
path | True |
string |
Azure 订阅 ID。 这是 GUID 格式的字符串(例如 000000000-0000-0000-0000-00000000000000)。 |
|
api-version
|
query | True |
string |
API 版本 |
请求正文
| 名称 | 必需 | 类型 | 说明 |
|---|---|---|---|
| properties.connectionString | True |
string |
远程 MySQL 数据库的连接字符串。 |
| properties.migrationType | True |
要执行的迁移作的类型 |
|
| kind |
string |
资源类型。 |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
好的 |
|
| Other Status Codes |
应用服务错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
| 名称 | 说明 |
|---|---|
| user_impersonation | 模拟用户帐户 |
定义
| 名称 | 说明 |
|---|---|
|
Default |
应用服务错误响应。 |
| Details | |
| Error |
错误模型。 |
|
Error |
从 API 返回的错误响应的正文。 |
|
Migrate |
MySQL 迁移请求。 |
|
My |
要执行的迁移作的类型 |
| Operation |
对资源的作。 |
|
Operation |
迁移任务的状态。 |
DefaultErrorResponse
应用服务错误响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| error |
错误模型。 |
Details
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
标准化字符串,以编程方式识别错误。 |
| message |
string |
详细的错误描述和调试信息。 |
| target |
string |
详细的错误描述和调试信息。 |
Error
错误模型。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
标准化字符串,以编程方式识别错误。 |
| details |
Details[] |
详细错误。 |
| innererror |
string |
调试错误的更多信息。 |
| message |
string |
详细的错误描述和调试信息。 |
| target |
string |
详细的错误描述和调试信息。 |
ErrorEntity
从 API 返回的错误响应的正文。
| 名称 | 类型 | 说明 |
|---|---|---|
| code |
string |
基本错误代码。 |
| details |
错误详细信息。 |
|
| extendedCode |
string |
错误类型。 |
| innerErrors |
内部错误。 |
|
| message |
string |
错误的任何详细信息。 |
| messageTemplate |
string |
消息模板。 |
| parameters |
string[] |
模板的参数。 |
| target |
string |
错误目标。 |
MigrateMySqlRequest
MySQL 迁移请求。
| 名称 | 类型 | 说明 |
|---|---|---|
| id |
string |
资源 ID。 |
| kind |
string |
资源类型。 |
| name |
string |
资源名称。 |
| properties.connectionString |
string |
远程 MySQL 数据库的连接字符串。 |
| properties.migrationType |
要执行的迁移作的类型 |
|
| type |
string |
资源类型。 |
MySqlMigrationType
要执行的迁移作的类型
| 值 | 说明 |
|---|---|
| LocalToRemote | |
| RemoteToLocal |
Operation
对资源的作。
| 名称 | 类型 | 说明 |
|---|---|---|
| createdTime |
string (date-time) |
作开始的时间。 |
| errors |
与作相关的任何错误。 |
|
| expirationTime |
string (date-time) |
作到期的时间。 |
| geoMasterOperationId |
string (uuid) |
仅适用于图章作 ID。 |
| id |
string |
作 ID。 |
| modifiedTime |
string (date-time) |
更新作的时间。 |
| name |
string |
作名称。 |
| status |
操作的当前状态。 |
OperationStatus
迁移任务的状态。
| 值 | 说明 |
|---|---|
| InProgress | |
| Failed | |
| Succeeded | |
| TimedOut | |
| Created |