MigrationResource interface
表示迁移资源。
属性
| cancel | 若要为整个迁移触发取消,需要将此标志作为 True 发送 |
| current |
迁移的当前状态注意:此属性不会序列化。 它只能由服务器填充。 |
| dbs |
如果想要为特定数据库触发取消,请将取消标志作为 True 和此数组中的数据库名称发送 |
| dbs |
要迁移的数据库数 |
| dbs |
如果想要为特定数据库触发直接转换,请将 triggerCutover 标志作为 True 和此数组中的数据库名称发送 |
| migrate |
若要迁移角色和权限,需要将此标志作为 True 发送 |
| migration |
迁移的 ID,GUID。 注意:此属性不会序列化。 它只能由服务器填充。 |
| migration |
专用终结点迁移实例的 ResourceId |
| migration |
联机和脱机迁移模式有两种类型 |
| migration |
这表示迁移支持的迁移选项 |
| migration |
用于迁移窗口的 UTC 结束时间 |
| migration |
迁移窗口的 UTC 开始时间 |
| overwrite |
指示是否可以覆盖目标服务器上的数据库(如果已存在)。 如果设置为 False,则迁移工作流将等待确认(如果检测到数据库已存在)。 |
| secret |
迁移机密参数 |
| setup |
指示是否需要设置 LogicalReplicationOnSourceDb |
| source |
源服务器完全限定的域名(FQDN)或 IP 地址。 它是一个可选值,如果客户提供它,迁移服务将始终使用它进行连接 |
| source |
源数据库服务器的元数据注意:此属性不会序列化。 它只能由服务器填充。 |
| source |
如果 sourceType 为 PostgreSQLSingleServer,则源数据库服务器的 ResourceId。 对于其他源类型,应为 ipaddress:port@username 或 hostname:port@username |
| source |
迁移源服务器类型:OnPremises、AWS、GCP、AzureVM、PostgreSQLSingleServer、AWS_RDS、AWS_AURORA、AWS_EC2、GCP_CloudSQL、GCP_AlloyDB、GCP_Compute 或 EDB |
| ssl |
用于迁移的 SSL 模式。 PostgreSQLSingleServer 的默认 SSL 模式为 VerifyFull,并且首选其他源类型 |
| start |
指示数据迁移是否应立即开始 |
| target |
目标服务器完全限定的域名(FQDN)或 IP 地址。 它是一个可选值,如果客户提供它,迁移服务将始终使用它进行连接 |
| target |
目标数据库服务器的元数据注意:此属性不会序列化。 它只能由服务器填充。 |
| target |
源数据库服务器的 ResourceId 注意:此属性不会序列化。 它只能由服务器填充。 |
| trigger |
若要触发整个迁移的直接转换,需要将此标志作为 True 发送 |
继承属性
| id | 资源的完全限定资源 ID。 例如“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}”注意:此属性不会序列化。 它只能由服务器填充。 |
| location | 资源所在的地理位置 |
| name | 资源说明的名称:此属性不会序列化。 它只能由服务器填充。 |
| system |
包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。 注意:此属性不会序列化。 它只能由服务器填充。 |
| tags | 资源标记。 |
| type | 资源的类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts”注意:此属性不会序列化。 它只能由服务器填充。 |
属性详细信息
cancel
若要为整个迁移触发取消,需要将此标志作为 True 发送
cancel?: string
属性值
string
currentStatus
dbsToCancelMigrationOn
如果想要为特定数据库触发取消,请将取消标志作为 True 和此数组中的数据库名称发送
dbsToCancelMigrationOn?: string[]
属性值
string[]
dbsToMigrate
要迁移的数据库数
dbsToMigrate?: string[]
属性值
string[]
dbsToTriggerCutoverOn
如果想要为特定数据库触发直接转换,请将 triggerCutover 标志作为 True 和此数组中的数据库名称发送
dbsToTriggerCutoverOn?: string[]
属性值
string[]
migrateRoles
若要迁移角色和权限,需要将此标志作为 True 发送
migrateRoles?: string
属性值
string
migrationId
迁移的 ID,GUID。 注意:此属性不会序列化。 它只能由服务器填充。
migrationId?: string
属性值
string
migrationInstanceResourceId
专用终结点迁移实例的 ResourceId
migrationInstanceResourceId?: string
属性值
string
migrationMode
联机和脱机迁移模式有两种类型
migrationMode?: string
属性值
string
migrationOption
这表示迁移支持的迁移选项
migrationOption?: string
属性值
string
migrationWindowEndTimeInUtc
用于迁移窗口的 UTC 结束时间
migrationWindowEndTimeInUtc?: Date
属性值
Date
migrationWindowStartTimeInUtc
迁移窗口的 UTC 开始时间
migrationWindowStartTimeInUtc?: Date
属性值
Date
overwriteDbsInTarget
指示是否可以覆盖目标服务器上的数据库(如果已存在)。 如果设置为 False,则迁移工作流将等待确认(如果检测到数据库已存在)。
overwriteDbsInTarget?: string
属性值
string
secretParameters
setupLogicalReplicationOnSourceDbIfNeeded
指示是否需要设置 LogicalReplicationOnSourceDb
setupLogicalReplicationOnSourceDbIfNeeded?: string
属性值
string
sourceDbServerFullyQualifiedDomainName
源服务器完全限定的域名(FQDN)或 IP 地址。 它是一个可选值,如果客户提供它,迁移服务将始终使用它进行连接
sourceDbServerFullyQualifiedDomainName?: string
属性值
string
sourceDbServerMetadata
sourceDbServerResourceId
如果 sourceType 为 PostgreSQLSingleServer,则源数据库服务器的 ResourceId。 对于其他源类型,应为 ipaddress:port@username 或 hostname:port@username
sourceDbServerResourceId?: string
属性值
string
sourceType
迁移源服务器类型:OnPremises、AWS、GCP、AzureVM、PostgreSQLSingleServer、AWS_RDS、AWS_AURORA、AWS_EC2、GCP_CloudSQL、GCP_AlloyDB、GCP_Compute 或 EDB
sourceType?: string
属性值
string
sslMode
用于迁移的 SSL 模式。 PostgreSQLSingleServer 的默认 SSL 模式为 VerifyFull,并且首选其他源类型
sslMode?: string
属性值
string
startDataMigration
指示数据迁移是否应立即开始
startDataMigration?: string
属性值
string
targetDbServerFullyQualifiedDomainName
目标服务器完全限定的域名(FQDN)或 IP 地址。 它是一个可选值,如果客户提供它,迁移服务将始终使用它进行连接
targetDbServerFullyQualifiedDomainName?: string
属性值
string
targetDbServerMetadata
targetDbServerResourceId
源数据库服务器的 ResourceId 注意:此属性不会序列化。 它只能由服务器填充。
targetDbServerResourceId?: string
属性值
string
triggerCutover
若要触发整个迁移的直接转换,需要将此标志作为 True 发送
triggerCutover?: string
属性值
string
继承属性详细信息
id
资源的完全限定资源 ID。 例如“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}”注意:此属性不会序列化。 它只能由服务器填充。
id?: string
属性值
string
继承自
location
name
资源说明的名称:此属性不会序列化。 它只能由服务器填充。
name?: string
属性值
string
继承自
systemData
包含 createdBy 和 modifiedBy 信息的 Azure 资源管理器元数据。 注意:此属性不会序列化。 它只能由服务器填充。
systemData?: SystemData
属性值
tags
资源标记。
tags?: {[propertyName: string]: string}
属性值
{[propertyName: string]: string}
type
资源的类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts”注意:此属性不会序列化。 它只能由服务器填充。
type?: string
属性值
string